Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
timelinemetric.h
Go to the documentation of this file.
1 
18 #ifndef ION_PROFILE_TIMELINEMETRIC_H_
19 #define ION_PROFILE_TIMELINEMETRIC_H_
20 
22 #include "ion/profile/timeline.h"
23 
24 namespace ion {
25 namespace profile {
26 
31  public:
32  virtual ~TimelineMetric() {}
34  virtual void Run(const Timeline& timeline,
35  analytics::Benchmark* benchmark) const = 0;
36 };
37 
38 } // namespace profile
39 } // namespace ion
40 
41 #endif // ION_PROFILE_TIMELINEMETRIC_H_
Copyright 2016 Google Inc.
Definition: timeline.h:47
virtual void Run(const Timeline &timeline, analytics::Benchmark *benchmark) const =0
Run the metric on the timeline and add results to benchmark.
A timeline metric processes a timeline, computes a set of metrics and adds them to a Benchmark object...
The Benchmark class provides types and utilities to make it easier to create performance benchmarks...
Definition: benchmark.h:34