diff options
Diffstat (limited to 'common/profiler/profiler.h')
-rw-r--r-- | common/profiler/profiler.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common/profiler/profiler.h b/common/profiler/profiler.h index 8788e59..152a116 100644 --- a/common/profiler/profiler.h +++ b/common/profiler/profiler.h @@ -20,9 +20,9 @@ #include <cutils/properties.h> #include <limits> -#include <list> #include <memory> #include <string> +#include <vector> namespace google { namespace camera_common { @@ -150,6 +150,11 @@ class Profiler { virtual ~Profiler() = default; + struct LatencyEvent { + std::string name; + float duration; + }; + // adb setprop options. enum SetPropFlag { kDisable = 0, @@ -208,7 +213,7 @@ class Profiler { // The interval unit is second and interval_seconds must >= 1 virtual void SetFpsPrintInterval(int32_t interval_seconds) = 0; - virtual std::list<std::pair<std::string, float>> GetLatencyData() = 0; + virtual std::vector<LatencyEvent> GetLatencyData() = 0; virtual std::string GetUseCase() const = 0; |