|
KiCad PCB EDA Suite
|
#include <profile.h>
Classes | |
| struct | CHECKPOINT |
Public Types | |
| using | CLOCK = std::chrono::high_resolution_clock |
| using | TIME_POINT = std::chrono::time_point<CLOCK> |
Public Member Functions | |
| LATENCY_PROBE (const std::string &aName, int aStages=8) | |
| void | Reset () |
| void | Checkpoint (const std::string &aName) |
| void | AddTimer (PROF_TIMER &aTimer) |
| std::string | to_string () |
| double | delta_ms (TIME_POINT a, TIME_POINT b) |
Private Attributes | |
| TIME_POINT | m_start |
| std::string | m_name |
| std::vector< CHECKPOINT > | m_checkpoints |
| using LATENCY_PROBE::CLOCK = std::chrono::high_resolution_clock |
| using LATENCY_PROBE::TIME_POINT = std::chrono::time_point<CLOCK> |
|
inline |
Definition at line 316 of file profile.h.
References m_checkpoints, and m_name.
|
inline |
Definition at line 336 of file profile.h.
References PROF_TIMER::GetName(), LATENCY_PROBE::CHECKPOINT::isTimer, m_checkpoints, PROF_TIMER::msecs(), LATENCY_PROBE::CHECKPOINT::name, and LATENCY_PROBE::CHECKPOINT::timerDelta.
|
inline |
Definition at line 328 of file profile.h.
References m_checkpoints, LATENCY_PROBE::CHECKPOINT::name, and LATENCY_PROBE::CHECKPOINT::timestamp.
|
inline |
Definition at line 347 of file profile.h.
Referenced by to_string().
|
inline |
Definition at line 322 of file profile.h.
References m_checkpoints, and m_start.
| std::string LATENCY_PROBE::to_string | ( | ) |
Definition at line 79 of file profile.cpp.
References delta_ms(), m_checkpoints, m_name, and m_start.
|
private |
Definition at line 357 of file profile.h.
Referenced by AddTimer(), Checkpoint(), LATENCY_PROBE(), Reset(), and to_string().
|
private |
Definition at line 356 of file profile.h.
Referenced by LATENCY_PROBE(), and to_string().
|
private |
Definition at line 355 of file profile.h.
Referenced by Reset(), and to_string().