frame.h 738 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2019 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. #ifndef BASE_PROFILER_FRAME_H_
  5. #define BASE_PROFILER_FRAME_H_
  6. #include "base/base_export.h"
  7. #include "base/profiler/module_cache.h"
  8. namespace base {
  9. // Frame represents an individual sampled stack frame with full module
  10. // information.
  11. struct BASE_EXPORT Frame {
  12. Frame(uintptr_t instruction_pointer, const ModuleCache::Module* module);
  13. ~Frame();
  14. // The sampled instruction pointer within the function.
  15. uintptr_t instruction_pointer;
  16. // The module information.
  17. const ModuleCache::Module* module;
  18. };
  19. } // namespace base
  20. #endif // BASE_PROFILER_FRAME_H_