xref: /aosp_15_r20/external/cronet/base/profiler/frame.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1*6777b538SAndroid Build Coastguard Worker // Copyright 2019 The Chromium Authors
2*6777b538SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
3*6777b538SAndroid Build Coastguard Worker // found in the LICENSE file.
4*6777b538SAndroid Build Coastguard Worker 
5*6777b538SAndroid Build Coastguard Worker #include "base/profiler/frame.h"
6*6777b538SAndroid Build Coastguard Worker 
7*6777b538SAndroid Build Coastguard Worker namespace base {
8*6777b538SAndroid Build Coastguard Worker 
Frame(uintptr_t instruction_pointer,const ModuleCache::Module * module)9*6777b538SAndroid Build Coastguard Worker Frame::Frame(uintptr_t instruction_pointer, const ModuleCache::Module* module)
10*6777b538SAndroid Build Coastguard Worker     : instruction_pointer(instruction_pointer), module(module) {}
11*6777b538SAndroid Build Coastguard Worker 
Frame(uintptr_t instruction_pointer,const ModuleCache::Module * module,std::string function_name)12*6777b538SAndroid Build Coastguard Worker Frame::Frame(uintptr_t instruction_pointer,
13*6777b538SAndroid Build Coastguard Worker              const ModuleCache::Module* module,
14*6777b538SAndroid Build Coastguard Worker              std::string function_name)
15*6777b538SAndroid Build Coastguard Worker     : instruction_pointer(instruction_pointer),
16*6777b538SAndroid Build Coastguard Worker       module(module),
17*6777b538SAndroid Build Coastguard Worker       function_name(std::move(function_name)) {}
18*6777b538SAndroid Build Coastguard Worker 
19*6777b538SAndroid Build Coastguard Worker Frame::~Frame() = default;
20*6777b538SAndroid Build Coastguard Worker 
21*6777b538SAndroid Build Coastguard Worker }  // namespace base
22