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

Side by Side Diff: ui/latency/mojo/latency_info_struct_traits.h

Issue 2954473002: Record accuracy of expected queueing time metric. (Closed)
Patch Set: Set trace ID in test. Created 3 years, 5 months 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 unified diff | Download patch
« no previous file with comments | « ui/latency/mojo/latency_info.mojom ('k') | ui/latency/mojo/latency_info_struct_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 5 #ifndef UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
6 #define UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 6 #define UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
7 7
8 #include "mojo/common/common_custom_types_struct_traits.h"
8 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h" 9 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h"
9 #include "ui/latency/latency_info.h" 10 #include "ui/latency/latency_info.h"
10 #include "ui/latency/mojo/latency_info.mojom-shared.h" 11 #include "ui/latency/mojo/latency_info.mojom-shared.h"
11 12
12 namespace mojo { 13 namespace mojo {
13 14
14 static_assert( 15 static_assert(
15 static_cast<int>( 16 static_cast<int>(
16 ui::mojom::LatencyComponentType::LATENCY_COMPONENT_TYPE_LAST) == 17 ui::mojom::LatencyComponentType::LATENCY_COMPONENT_TYPE_LAST) ==
17 static_cast<int>(ui::LATENCY_COMPONENT_TYPE_LAST), 18 static_cast<int>(ui::LATENCY_COMPONENT_TYPE_LAST),
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 struct StructTraits<ui::mojom::LatencyInfoDataView, ui::LatencyInfo> { 94 struct StructTraits<ui::mojom::LatencyInfoDataView, ui::LatencyInfo> {
94 static const std::string& trace_name(const ui::LatencyInfo& info); 95 static const std::string& trace_name(const ui::LatencyInfo& info);
95 static const ui::LatencyInfo::LatencyMap& latency_components( 96 static const ui::LatencyInfo::LatencyMap& latency_components(
96 const ui::LatencyInfo& info); 97 const ui::LatencyInfo& info);
97 static int64_t trace_id(const ui::LatencyInfo& info); 98 static int64_t trace_id(const ui::LatencyInfo& info);
98 static bool coalesced(const ui::LatencyInfo& info); 99 static bool coalesced(const ui::LatencyInfo& info);
99 static bool began(const ui::LatencyInfo& info); 100 static bool began(const ui::LatencyInfo& info);
100 static bool terminated(const ui::LatencyInfo& info); 101 static bool terminated(const ui::LatencyInfo& info);
101 static ui::mojom::SourceEventType source_event_type( 102 static ui::mojom::SourceEventType source_event_type(
102 const ui::LatencyInfo& info); 103 const ui::LatencyInfo& info);
104 static base::TimeDelta expected_queueing_time_on_dispatch(
105 const ui::LatencyInfo& info);
103 static bool Read(ui::mojom::LatencyInfoDataView data, ui::LatencyInfo* out); 106 static bool Read(ui::mojom::LatencyInfoDataView data, ui::LatencyInfo* out);
104 }; 107 };
105 108
106 } // namespace mojo 109 } // namespace mojo
107 110
108 #endif // UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_ 111 #endif // UI_LATENCY_MOJO_LATENCY_INFO_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « ui/latency/mojo/latency_info.mojom ('k') | ui/latency/mojo/latency_info_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698