xref: /aosp_15_r20/external/cronet/base/profiler/frame.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2019 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.
4 
5 #include "base/profiler/frame.h"
6 
7 namespace base {
8 
Frame(uintptr_t instruction_pointer,const ModuleCache::Module * module)9 Frame::Frame(uintptr_t instruction_pointer, const ModuleCache::Module* module)
10     : instruction_pointer(instruction_pointer), module(module) {}
11 
Frame(uintptr_t instruction_pointer,const ModuleCache::Module * module,std::string function_name)12 Frame::Frame(uintptr_t instruction_pointer,
13              const ModuleCache::Module* module,
14              std::string function_name)
15     : instruction_pointer(instruction_pointer),
16       module(module),
17       function_name(std::move(function_name)) {}
18 
19 Frame::~Frame() = default;
20 
21 }  // namespace base
22