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

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

Issue 1541893002: Support narrowing a cpu profile to a given time window (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 12 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/profiler.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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 class ProfilerService : public AllStatic { 390 class ProfilerService : public AllStatic {
391 public: 391 public:
392 enum { 392 enum {
393 kNoExtraTags = 0, 393 kNoExtraTags = 0,
394 kCodeTransitionTagsBit = (1 << 0), 394 kCodeTransitionTagsBit = (1 << 0),
395 }; 395 };
396 396
397 static void PrintJSON(JSONStream* stream, 397 static void PrintJSON(JSONStream* stream,
398 Profile::TagOrder tag_order, 398 Profile::TagOrder tag_order,
399 intptr_t extra_tags); 399 intptr_t extra_tags,
400 int64_t time_origin_micros,
401 int64_t time_extent_micros);
400 402
401 static void PrintAllocationJSON(JSONStream* stream, 403 static void PrintAllocationJSON(JSONStream* stream,
402 Profile::TagOrder tag_order, 404 Profile::TagOrder tag_order,
403 const Class& cls); 405 const Class& cls,
406 int64_t time_origin_micros,
407 int64_t time_extent_micros);
404 408
405 static void PrintTimelineJSON(JSONStream* stream, 409 static void PrintTimelineJSON(JSONStream* stream,
406 Profile::TagOrder tag_order); 410 Profile::TagOrder tag_order,
411 int64_t time_origin_micros,
412 int64_t time_extent_micros);
407 413
408 static void ClearSamples(); 414 static void ClearSamples();
409 415
410 private: 416 private:
411 static void PrintJSONImpl(Thread* thread, 417 static void PrintJSONImpl(Thread* thread,
412 JSONStream* stream, 418 JSONStream* stream,
413 Profile::TagOrder tag_order, 419 Profile::TagOrder tag_order,
414 intptr_t extra_tags, 420 intptr_t extra_tags,
415 SampleFilter* filter, 421 SampleFilter* filter,
416 bool as_timline); 422 bool as_timline);
417 }; 423 };
418 424
419 } // namespace dart 425 } // namespace dart
420 426
421 #endif // VM_PROFILER_SERVICE_H_ 427 #endif // VM_PROFILER_SERVICE_H_
OLDNEW
« no previous file with comments | « runtime/vm/profiler.cc ('k') | runtime/vm/profiler_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698