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

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

Issue 1241653002: Factor cpu profile tree into separate element and expose allocation tracing UI (Closed) Base URL: git@github.com:dart-lang/sdk.git@expose_allocation_profile_service
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/observatory/lib/src/elements/cpu_profile.html ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_H_ 5 #ifndef VM_PROFILER_H_
6 #define VM_PROFILER_H_ 6 #define VM_PROFILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/bitfield.h" 9 #include "vm/bitfield.h"
10 #include "vm/code_observers.h" 10 #include "vm/code_observers.h"
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 void set_vm_tag(uword tag) { vm_tag_ = tag; } 465 void set_vm_tag(uword tag) { vm_tag_ = tag; }
466 466
467 // The user tag. 467 // The user tag.
468 uword user_tag() const { return user_tag_; } 468 uword user_tag() const { return user_tag_; }
469 void set_user_tag(uword tag) { user_tag_ = tag; } 469 void set_user_tag(uword tag) { user_tag_ = tag; }
470 470
471 // The class id if this is an allocation profile sample. -1 otherwise. 471 // The class id if this is an allocation profile sample. -1 otherwise.
472 intptr_t allocation_cid() const { return allocation_cid_; } 472 intptr_t allocation_cid() const { return allocation_cid_; }
473 void set_allocation_cid(intptr_t cid) { allocation_cid_ = cid; } 473 void set_allocation_cid(intptr_t cid) { allocation_cid_ = cid; }
474 474
475 bool IsAllocationSample() const {
476 return allocation_cid_ > 0;
477 }
478
475 // Was the stack trace truncated? 479 // Was the stack trace truncated?
476 bool truncated() const { return truncated_; } 480 bool truncated() const { return truncated_; }
477 void set_truncated(bool truncated) { truncated_ = truncated; } 481 void set_truncated(bool truncated) { truncated_ = truncated; }
478 482
479 // Was the first frame in the stack trace executing? 483 // Was the first frame in the stack trace executing?
480 bool first_frame_executing() const { return first_frame_executing_; } 484 bool first_frame_executing() const { return first_frame_executing_; }
481 void set_first_frame_executing(bool first_frame_executing) { 485 void set_first_frame_executing(bool first_frame_executing) {
482 first_frame_executing_ = first_frame_executing; 486 first_frame_executing_ = first_frame_executing;
483 } 487 }
484 488
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 538
535 private: 539 private:
536 ZoneGrowableArray<ProcessedSample*> samples_; 540 ZoneGrowableArray<ProcessedSample*> samples_;
537 541
538 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer); 542 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer);
539 }; 543 };
540 544
541 } // namespace dart 545 } // namespace dart
542 546
543 #endif // VM_PROFILER_H_ 547 #endif // VM_PROFILER_H_
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/cpu_profile.html ('k') | runtime/vm/profiler_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698