mirror of
https://gitee.com/openharmony/applications_systemui
synced 2024-12-27 10:25:17 +00:00
!512 fix:bytrace日落,使用hitrace方式采集
Merge pull request !512 from jiangwei/master
This commit is contained in:
commit
ff18b8d2d8
@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import byTrace from '@ohos.bytrace';
|
||||
import hiTraceMeter from '@ohos.hiTraceMeter';
|
||||
import Log from './Log';
|
||||
|
||||
/**
|
||||
@ -49,7 +49,7 @@ export default class Trace {
|
||||
globalThis.taskIdMap.set(methodName, taskId);
|
||||
}
|
||||
Log.showInfo(this.TRACE_TAG, `start trace ${taskId}`);
|
||||
byTrace.startTrace(this.TRACE_TAG + methodName, taskId, Trace.TRACE_LIMIT);
|
||||
hiTraceMeter.startTrace(this.TRACE_TAG + methodName, taskId);
|
||||
}
|
||||
|
||||
private static init() {
|
||||
@ -74,6 +74,6 @@ export default class Trace {
|
||||
return;
|
||||
}
|
||||
Log.showInfo(this.TRACE_TAG, `end trace ${taskId}`);
|
||||
byTrace.finishTrace(this.TRACE_TAG + methodName, taskId);
|
||||
hiTraceMeter.finishTrace(this.TRACE_TAG + methodName, taskId);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user