1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_METRICS_CALL_STACK_PROFILE_ENCODING_H_
6 #define COMPONENTS_METRICS_CALL_STACK_PROFILE_ENCODING_H_
8 #include "components/metrics/call_stack_profile_params.h"
9 #include "third_party/metrics_proto/sampled_profile.pb.h"
13 // Translates CallStackProfileParams's process to the corresponding execution
15 Process ToExecutionContextProcess(CallStackProfileParams::Process process);
17 // Translates CallStackProfileParams's thread to the corresponding
18 // SampledProfile Thread.
19 Thread ToExecutionContextThread(CallStackProfileParams::Thread thread);
21 // Translates CallStackProfileParams's trigger to the corresponding
22 // SampledProfile TriggerEvent.
23 SampledProfile::TriggerEvent ToSampledProfileTriggerEvent(
24 CallStackProfileParams::Trigger trigger);
26 } // namespace metrics
28 #endif // COMPONENTS_METRICS_CALL_STACK_PROFILE_ENCODING_H_