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

Unified Diff: runtime/vm/profiler.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 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 | « no previous file | runtime/vm/profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.h
diff --git a/runtime/vm/profiler.h b/runtime/vm/profiler.h
index e598e70089d75d8ad5766630e318a95255869f26..02f8f382b66a9cf968ec761814fab63f15233b74 100644
--- a/runtime/vm/profiler.h
+++ b/runtime/vm/profiler.h
@@ -91,7 +91,12 @@ class SampleVisitor : public ValueObject {
class SampleFilter : public ValueObject {
public:
- explicit SampleFilter(Isolate* isolate) : isolate_(isolate) { }
+ SampleFilter(Isolate* isolate,
+ int64_t time_origin_micros,
+ int64_t time_extent_micros)
+ : isolate_(isolate),
+ time_origin_micros_(time_origin_micros),
+ time_extent_micros_(time_extent_micros) { }
virtual ~SampleFilter() { }
// Override this function.
@@ -104,8 +109,14 @@ class SampleFilter : public ValueObject {
return isolate_;
}
+ // Returns |true| if |sample| passes the time filter.
+ bool TimeFilterSample(Sample* sample);
+
private:
Isolate* isolate_;
+
+ int64_t time_origin_micros_;
+ int64_t time_extent_micros_;
};
« no previous file with comments | « no previous file | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698