| 6 | #define BASE_PROFILER_FRAME_H_ |
| 7 |
| 8 | #include <memory> |
| 9 |
| 10 | #include "base/profiler/module_cache.h" |
| 11 |
| 12 | namespace base { |
| 13 |
| 14 | // Frame represents an individual sampled stack frame with full module |
| 15 | // information. |
| 16 | struct BASE_EXPORT Frame { |
| 17 | Frame(uintptr_t instruction_pointer, const ModuleCache::Module* module); |
| 18 | ~Frame(); |
| 19 |
| 20 | // The sampled instruction pointer within the function. |
| 21 | uintptr_t instruction_pointer; |
| 22 |
| 23 | // The module information. |
| 24 | const ModuleCache::Module* module; |
| 25 | }; |
| 26 |
| 27 | } // namespace base |
| 28 |
| 29 | #endif // BASE_PROFILER_FRAME_H_ |
| 30 |