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

Side by Side Diff: runtime/vm/profiler_service.h

Issue 1260793003: Fix ProfileCode ticking and add unit test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | runtime/vm/profiler_service.cc » ('j') | runtime/vm/profiler_test.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PROFILER_SERVICE_H_ 5 #ifndef VM_PROFILER_SERVICE_H_
6 #define VM_PROFILER_SERVICE_H_ 6 #define VM_PROFILER_SERVICE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/code_observers.h" 9 #include "vm/code_observers.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 : profile_(profile), 342 : profile_(profile),
343 parent_(NULL), 343 parent_(NULL),
344 current_(NULL), 344 current_(NULL),
345 code_trie_(false) { 345 code_trie_(false) {
346 ASSERT(profile_ != NULL); 346 ASSERT(profile_ != NULL);
347 } 347 }
348 348
349 void Reset(Profile::TrieKind trie_kind); 349 void Reset(Profile::TrieKind trie_kind);
350 350
351 const char* CurrentName(); 351 const char* CurrentName();
352 // Return the current node's peer's inclusive tick count.
353 intptr_t CurrentInclusiveTicks();
354 // Return the current node's peer's exclusive tick count.
355 intptr_t CurrentExclusiveTicks();
356 // Return the current node's tick count.
357 intptr_t CurrentNodeTickCount();
352 358
353 bool Down(); 359 bool Down();
354 bool NextSibling(); 360 bool NextSibling();
355 361
356 private: 362 private:
357 Profile* profile_; 363 Profile* profile_;
358 ProfileTrieNode* parent_; 364 ProfileTrieNode* parent_;
359 ProfileTrieNode* current_; 365 ProfileTrieNode* current_;
360 bool code_trie_; 366 bool code_trie_;
361 }; 367 };
(...skipping 13 matching lines...) Expand all
375 private: 381 private:
376 static void PrintJSONImpl(Isolate* isolate, 382 static void PrintJSONImpl(Isolate* isolate,
377 JSONStream* stream, 383 JSONStream* stream,
378 Profile::TagOrder tag_order, 384 Profile::TagOrder tag_order,
379 SampleFilter* filter); 385 SampleFilter* filter);
380 }; 386 };
381 387
382 } // namespace dart 388 } // namespace dart
383 389
384 #endif // VM_PROFILER_SERVICE_H_ 390 #endif // VM_PROFILER_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/profiler_service.cc » ('j') | runtime/vm/profiler_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698