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

Side by Side Diff: components/metrics/call_stack_profile_params.cc

Issue 2362493002: Stack sampling profiler: set process and thread information (Closed)
Patch Set: address comments Created 4 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 #include "components/metrics/call_stack_profile_params.h" 5 #include "components/metrics/call_stack_profile_params.h"
6 6
7 namespace metrics { 7 namespace metrics {
8 8
9 CallStackProfileParams::CallStackProfileParams() 9 CallStackProfileParams::CallStackProfileParams()
10 : CallStackProfileParams(UNKNOWN) {} 10 : CallStackProfileParams(UNKNOWN_PROCESS, UNKNOWN_THREAD, UNKNOWN) {}
11 11
12 CallStackProfileParams::CallStackProfileParams(Trigger trigger) 12 CallStackProfileParams::CallStackProfileParams(Process process, Thread thread,
13 : CallStackProfileParams(trigger, MAY_SHUFFLE) {} 13 Trigger trigger)
14 : CallStackProfileParams(process, thread, trigger, MAY_SHUFFLE) {}
14 15
15 CallStackProfileParams::CallStackProfileParams(Trigger trigger, 16 CallStackProfileParams::CallStackProfileParams(Process process, Thread thread,
17 Trigger trigger,
16 SampleOrderingSpec ordering_spec) 18 SampleOrderingSpec ordering_spec)
17 : trigger(trigger), ordering_spec(ordering_spec) {} 19 : process(process), thread(thread), trigger(trigger),
20 ordering_spec(ordering_spec) {}
18 21
19 } // namespace metrics 22 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/call_stack_profile_params.h ('k') | components/metrics/child_call_stack_profile_collector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698