projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[profiler] log profiler: limit method instrumentation to selected methods (#5517)
[mono.git]
/
mono
/
profiler
/
log.c
diff --git
a/mono/profiler/log.c
b/mono/profiler/log.c
index f3dbc56cbad61ad5382d149c07877bdd0359877b..8a677c2720d48bba530592351a5f6283d87f970b 100644
(file)
--- a/
mono/profiler/log.c
+++ b/
mono/profiler/log.c
@@
-1816,6
+1816,10
@@
method_exc_leave (MonoProfiler *prof, MonoMethod *method, MonoObject *exc)
static MonoProfilerCallInstrumentationFlags
method_filter (MonoProfiler *prof, MonoMethod *method)
{
static MonoProfilerCallInstrumentationFlags
method_filter (MonoProfiler *prof, MonoMethod *method)
{
+ if (log_config.callspec.len > 0 &&
+ !mono_callspec_eval (method, &log_config.callspec))
+ return MONO_PROFILER_CALL_INSTRUMENTATION_NONE;
+
return MONO_PROFILER_CALL_INSTRUMENTATION_ENTER |
MONO_PROFILER_CALL_INSTRUMENTATION_LEAVE |
MONO_PROFILER_CALL_INSTRUMENTATION_TAIL_CALL |
return MONO_PROFILER_CALL_INSTRUMENTATION_ENTER |
MONO_PROFILER_CALL_INSTRUMENTATION_LEAVE |
MONO_PROFILER_CALL_INSTRUMENTATION_TAIL_CALL |