/** * 增加一个跟踪信息,比如一个sql 注意:目前,顶级任务无法trace * * @param string */ public static void addTrace(String string) { if (string == null) { return; } TimeProfiler profiler = local.get(); if (profiler == null) { return; } profiler.taskJoin(profiler.new TraceTask(string)); }