Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(797)

Side by Side Diff: src/platform.h

Issue 9817002: Add OS::GetCurrentProcessId and prepend output from trace-gc with the current pid (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: updates Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/incremental-marking-inl.h ('k') | src/platform-posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 static const int kMinComplexMemCopy = 64; 310 static const int kMinComplexMemCopy = 64;
311 typedef void (*MemCopyFunction)(void* dest, const void* src, size_t size); 311 typedef void (*MemCopyFunction)(void* dest, const void* src, size_t size);
312 312
313 #else // V8_TARGET_ARCH_IA32 313 #else // V8_TARGET_ARCH_IA32
314 static void MemCopy(void* dest, const void* src, size_t size) { 314 static void MemCopy(void* dest, const void* src, size_t size) {
315 memcpy(dest, src, size); 315 memcpy(dest, src, size);
316 } 316 }
317 static const int kMinComplexMemCopy = 256; 317 static const int kMinComplexMemCopy = 256;
318 #endif // V8_TARGET_ARCH_IA32 318 #endif // V8_TARGET_ARCH_IA32
319 319
320 static int GetCurrentProcessId();
321
320 private: 322 private:
321 static const int msPerSecond = 1000; 323 static const int msPerSecond = 1000;
322 324
323 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); 325 DISALLOW_IMPLICIT_CONSTRUCTORS(OS);
324 }; 326 };
325 327
326 // Represents and controls an area of reserved memory. 328 // Represents and controls an area of reserved memory.
327 // Control of the reserved memory can be assigned to another VirtualMemory 329 // Control of the reserved memory can be assigned to another VirtualMemory
328 // object by assignment or copy-contructing. This removes the reserved memory 330 // object by assignment or copy-contructing. This removes the reserved memory
329 // from the original object. 331 // from the original object.
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 Atomic32 active_; 759 Atomic32 active_;
758 PlatformData* data_; // Platform specific data. 760 PlatformData* data_; // Platform specific data.
759 int samples_taken_; // Counts stack samples taken. 761 int samples_taken_; // Counts stack samples taken.
760 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 762 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
761 }; 763 };
762 764
763 765
764 } } // namespace v8::internal 766 } } // namespace v8::internal
765 767
766 #endif // V8_PLATFORM_H_ 768 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/incremental-marking-inl.h ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698