final ProfilerRegistry profilerRegistry = ProfilerRegistry.getThreadContextInstance();
Profiler profiler = profilerRegistry.get(profilerName);
if (profiler != null) {
profiler.stop().log();
}
profilerRegistry.clear();
threadLocal.set(null);
}
/**
* Create a sub profiler of an existing profiler