diff options
author | 2015-05-05 17:11:04 -0700 | |
---|---|---|
committer | 2015-05-05 17:14:59 -0700 | |
commit | 73423ae76d1ffcec73af4a504aaac6884f3df49e (patch) | |
tree | 40616a294978eedbf59d157a714ff73168e1f7a7 /src/core/profiling/stap_timers.c | |
parent | 234e62ce97d229141d3a1eea28103abbaa3d34d9 (diff) |
Added important (!) profiling mark.
It's meant to have a special status in the analysis, whereby latencies
from important marks to all their enclosing BEGIN ({) and END (})
markings will be measured.
Diffstat (limited to 'src/core/profiling/stap_timers.c')
-rw-r--r-- | src/core/profiling/stap_timers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/profiling/stap_timers.c b/src/core/profiling/stap_timers.c index 6e3a965dae..064c86e794 100644 --- a/src/core/profiling/stap_timers.c +++ b/src/core/profiling/stap_timers.c @@ -46,6 +46,11 @@ void grpc_timer_add_mark(int tag, void* id, const char* file, int line) { _STAP_ADD_MARK(tag); } +void grpc_timer_add_important_mark(int tag, void* id, const char* file, + int line) { + _STAP_ADD_IMPORTANT_MARK(tag); +} + void grpc_timer_begin(int tag, void* id, const char* file, int line) { _STAP_TIMING_NS_BEGIN(tag); } |