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

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

Issue 1231603008: Expose allocation tracing over service protocol (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/profiler_service.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 (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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 ProfileTrieNode* current_; 359 ProfileTrieNode* current_;
360 bool code_trie_; 360 bool code_trie_;
361 }; 361 };
362 362
363 363
364 class ProfilerService : public AllStatic { 364 class ProfilerService : public AllStatic {
365 public: 365 public:
366 static void PrintJSON(JSONStream* stream, 366 static void PrintJSON(JSONStream* stream,
367 Profile::TagOrder tag_order); 367 Profile::TagOrder tag_order);
368 368
369 static void PrintAllocationJSON(JSONStream* stream,
370 Profile::TagOrder tag_order,
371 const Class& cls);
372
369 static void ClearSamples(); 373 static void ClearSamples();
374
375 private:
376 static void PrintJSONImpl(Isolate* isolate,
377 JSONStream* stream,
378 Profile::TagOrder tag_order,
379 SampleFilter* filter);
370 }; 380 };
371 381
372 } // namespace dart 382 } // namespace dart
373 383
374 #endif // VM_PROFILER_SERVICE_H_ 384 #endif // VM_PROFILER_SERVICE_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/profiler_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698