From 73423ae76d1ffcec73af4a504aaac6884f3df49e Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Tue, 5 May 2015 17:11:04 -0700 Subject: 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. --- src/core/profiling/stap_timers.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/profiling/stap_timers.c') 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); } -- cgit v1.2.3