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

Side by Side Diff: src/profile-generator.h

Issue 22412003: Support idle time in CPU profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment addressed Created 7 years, 4 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/isolate.h ('k') | src/profile-generator.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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 class ProfileGenerator { 335 class ProfileGenerator {
336 public: 336 public:
337 explicit ProfileGenerator(CpuProfilesCollection* profiles); 337 explicit ProfileGenerator(CpuProfilesCollection* profiles);
338 338
339 void RecordTickSample(const TickSample& sample); 339 void RecordTickSample(const TickSample& sample);
340 340
341 INLINE(CodeMap* code_map()) { return &code_map_; } 341 INLINE(CodeMap* code_map()) { return &code_map_; }
342 342
343 static const char* const kAnonymousFunctionName; 343 static const char* const kAnonymousFunctionName;
344 static const char* const kProgramEntryName; 344 static const char* const kProgramEntryName;
345 static const char* const kIdleEntryName;
345 static const char* const kGarbageCollectorEntryName; 346 static const char* const kGarbageCollectorEntryName;
346 // Used to represent frames for which we have no reliable way to 347 // Used to represent frames for which we have no reliable way to
347 // detect function. 348 // detect function.
348 static const char* const kUnresolvedFunctionName; 349 static const char* const kUnresolvedFunctionName;
349 350
350 private: 351 private:
351 INLINE(CodeEntry* EntryForVMState(StateTag tag)); 352 INLINE(CodeEntry* EntryForVMState(StateTag tag));
352 353
353 CpuProfilesCollection* profiles_; 354 CpuProfilesCollection* profiles_;
354 CodeMap code_map_; 355 CodeMap code_map_;
355 CodeEntry* program_entry_; 356 CodeEntry* program_entry_;
357 CodeEntry* idle_entry_;
356 CodeEntry* gc_entry_; 358 CodeEntry* gc_entry_;
357 CodeEntry* unresolved_entry_; 359 CodeEntry* unresolved_entry_;
358 360
359 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); 361 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator);
360 }; 362 };
361 363
362 364
363 } } // namespace v8::internal 365 } } // namespace v8::internal
364 366
365 #endif // V8_PROFILE_GENERATOR_H_ 367 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698