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

Side by Side Diff: content/common/profiled_stack_state.h

Issue 1325653003: Type change in StackSamplingProfiler from void* to uintptr_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@UMA2_refactor
Patch Set: Moved IPC structures into content/common and merged with dependent CL. Created 5 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_PROFILED_STACK_STATE_H_
6 #define CONTENT_COMMON_PROFILED_STACK_STATE_H_
7
8 #include "base/profiler/stack_sampling_profiler.h"
9 #include "content/common/content_export.h"
10
11 namespace base {
12 class TimeTicks;
Mike Wittman 2015/09/03 16:58:04 This should be an include. Forward declaration is
sydli 2015/09/03 17:18:13 Ah, that makes sense. Done.
13 } // namespace base
14
15 namespace content {
16
17 // Profiled stacks and related metrics provider parameters
18 // to send to UMA. Duplicated Trigger enum for IPC usage.
19 struct CONTENT_EXPORT ProfiledStackState {
20 // Keep this enum in sync with
21 // components/metrics/call_stack_profile_metrics_provider.h
22 enum Trigger {
23 UNKNOWN,
24 PROCESS_STARTUP,
25 JANKY_TASK,
26 THREAD_HUNG,
27 TRIGGER_LAST = THREAD_HUNG
28 };
29
30 ProfiledStackState(
31 Trigger trigger,
32 bool preserve_sample_ordering,
33 base::TimeTicks start_timestamp,
34 const base::StackSamplingProfiler::CallStackProfiles& profiles);
35
36 // Default constructor and destrucor exposed to satisfy IPC macros.
Mike Wittman 2015/09/03 16:58:04 nit: this should only refer to the constructor; us
sydli 2015/09/03 17:18:13 Done.
37 // Do not use explicitly.
38 ProfiledStackState();
39 ~ProfiledStackState();
40
41 // The triggering event.
42 Trigger trigger;
43
44 // True if sample ordering is important and should be preserved when the
45 // associated profiles are compressed.
46 bool preserve_sample_ordering;
47
48 // Time of profiling start.
49 base::TimeTicks start_timestamp;
50
51 // Collected stack profiles.
52 base::StackSamplingProfiler::CallStackProfiles profiles;
53 };
54
55 } // namespace content
56
57 #endif // CONTENT_COMMON_PROFILED_STACK_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698