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

Unified Diff: runtime/vm/profiler.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/observatory/tests/service/get_vm_timeline_rpc_test.dart ('k') | 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 02f8f382b66a9cf968ec761814fab63f15233b74..c7558904d000716d5351091ca894ba9240ee171a 100644
--- a/runtime/vm/profiler.h
+++ b/runtime/vm/profiler.h
@@ -96,7 +96,10 @@ class SampleFilter : public ValueObject {
int64_t time_extent_micros)
: isolate_(isolate),
time_origin_micros_(time_origin_micros),
- time_extent_micros_(time_extent_micros) { }
+ time_extent_micros_(time_extent_micros) {
+ ASSERT(time_origin_micros_ >= -1);
+ ASSERT(time_extent_micros_ >= -1);
+ }
virtual ~SampleFilter() { }
// Override this function.
« no previous file with comments | « runtime/observatory/tests/service/get_vm_timeline_rpc_test.dart ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698