| | |
| | |
|
| | | private static readonly Dictionary<string, LaunchTraceInfo> RunningTraces = new Dictionary<string, LaunchTraceInfo>(32);
|
| | |
|
| | | static bool isOpenTrace = false; // 发布暂不开启
|
| | | private static void TraceBegin(string key, string part)
|
| | | {
|
| | | if (!isOpenTrace)
|
| | | return;
|
| | | var now = DateTime.Now;
|
| | | RunningTraces[key] = new LaunchTraceInfo
|
| | | {
|
| | |
| | |
|
| | | private static void TraceEnd(string key, string part = null, string suffix = null)
|
| | | {
|
| | | if (!isOpenTrace)
|
| | | return;
|
| | | var now = DateTime.Now;
|
| | | if (!RunningTraces.TryGetValue(key, out LaunchTraceInfo traceInfo))
|
| | | {
|