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

Side by Side Diff: src/log.h

Issue 8770002: Merge r10103 to the 3.4 branch. This increases the tick interval on android. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.4/
Patch Set: Created 9 years 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 | « no previous file | src/version.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 void LogCompiledFunctions(); 285 void LogCompiledFunctions();
286 // Logs all accessor callbacks found in the heap. 286 // Logs all accessor callbacks found in the heap.
287 void LogAccessorCallbacks(); 287 void LogAccessorCallbacks();
288 // Used for logging stubs found in the snapshot. 288 // Used for logging stubs found in the snapshot.
289 void LogCodeObjects(); 289 void LogCodeObjects();
290 290
291 // Converts tag to a corresponding NATIVE_... if the script is native. 291 // Converts tag to a corresponding NATIVE_... if the script is native.
292 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); 292 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*));
293 293
294 // Profiler's sampling interval (in milliseconds). 294 // Profiler's sampling interval (in milliseconds).
295 #if defined(ANDROID)
296 // Phones and tablets have processors that are much slower than desktop
297 // and laptop computers for which current heuristics are tuned.
298 static const int kSamplingIntervalMs = 5;
299 #else
295 static const int kSamplingIntervalMs = 1; 300 static const int kSamplingIntervalMs = 1;
301 #endif
296 302
297 // Callback from Log, stops profiling in case of insufficient resources. 303 // Callback from Log, stops profiling in case of insufficient resources.
298 void LogFailure(); 304 void LogFailure();
299 305
300 private: 306 private:
301 class NameBuffer; 307 class NameBuffer;
302 class NameMap; 308 class NameMap;
303 309
304 Logger(); 310 Logger();
305 ~Logger(); 311 ~Logger();
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 // Class that extracts stack trace, used for profiling. 462 // Class that extracts stack trace, used for profiling.
457 class StackTracer : public AllStatic { 463 class StackTracer : public AllStatic {
458 public: 464 public:
459 static void Trace(Isolate* isolate, TickSample* sample); 465 static void Trace(Isolate* isolate, TickSample* sample);
460 }; 466 };
461 467
462 } } // namespace v8::internal 468 } } // namespace v8::internal
463 469
464 470
465 #endif // V8_LOG_H_ 471 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698