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

Unified Diff: runtime/vm/timeline.h

Issue 1533323004: Support narrowing a timeline to a given time window (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/timeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/timeline.h
diff --git a/runtime/vm/timeline.h b/runtime/vm/timeline.h
index 40040a4ed79624ee403d3ce3e24ae0bc37392eff..e00aa07a1a1a2f1353a9f5a331dca678291ac636 100644
--- a/runtime/vm/timeline.h
+++ b/runtime/vm/timeline.h
@@ -137,7 +137,9 @@ class TimelineEvent {
void End(const char* label,
int64_t micros = OS::GetCurrentMonotonicMicros());
- void SerializedJSON(const char* json);
+ void SerializedJSON(const char* json,
+ int64_t timestamp0,
+ int64_t timestamp1);
// Set the number of arguments in the event.
void SetNumArguments(intptr_t length);
@@ -522,7 +524,9 @@ class TimelineEventBlock {
class TimelineEventFilter : public ValueObject {
public:
- TimelineEventFilter();
+ TimelineEventFilter(int64_t time_origin_micros = -1,
+ int64_t time_extent_micros = -1);
+
virtual ~TimelineEventFilter();
virtual bool IncludeBlock(TimelineEventBlock* block) {
@@ -540,13 +544,19 @@ class TimelineEventFilter : public ValueObject {
return event->IsValid();
}
+ bool EventInTimeRange(TimelineEvent* event);
+
private:
+ int64_t time_origin_micros_;
+ int64_t time_extent_micros_;
};
class IsolateTimelineEventFilter : public TimelineEventFilter {
public:
- explicit IsolateTimelineEventFilter(Dart_Port isolate_id);
+ explicit IsolateTimelineEventFilter(Dart_Port isolate_id,
+ int64_t time_origin_micros = -1,
+ int64_t time_extent_micros = -1);
bool IncludeBlock(TimelineEventBlock* block) {
if (block == NULL) {
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/timeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698