fix bytrace_capture.bat failed issue

Signed-off-by:wenlong12 <wenlong12@huawei.com>

Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
wenlong12
2022-07-07 11:14:06 +08:00
parent 55e28a8a34
commit 295128e05a
+6 -6
View File
@@ -12,10 +12,10 @@
@rem limitations under the License.
@echo off
hdc shell "echo > /sys/kernel/debug/tracing/trace"
hdc shell "echo 4096 > /d/tracing/saved_cmdlines_size"
hdc shell "bytrace -t 10 -b 4096 --overwrite ohos zimage zmedia zcamera zaudio ability distributeddatamgr sched freq irq workq rs idle load disk pagecache memreclaim > /data/mynewtrace.ftrace"
hdc shell "echo > /sys/kernel/debug/tracing/trace"
hdc shell "sed -i '1,2d' /data/mynewtrace.ftrace"
hdc pull /data/mynewtrace.ftrace .
hdc_std shell "echo > /sys/kernel/debug/tracing/trace"
hdc_std shell "echo 4096 > /sys/kernel/debug/tracing/saved_cmdlines_size"
hdc_std shell "bytrace -t 10 -b 204800 --overwrite ohos ace workq idle app ark ability binder disk distributeddatamgr dsoftbus freq graphic irq mdfs memory memreclaim misc mmc msdp multimodalinput notification pagecache regulators rpc sched sync window zaudio zcamera zimage zmedia > /data/mynewtrace.ftrace"
hdc_std shell "echo > /sys/kernel/debug/tracing/trace"
hdc_std shell "sed -i '1,2d' /data/mynewtrace.ftrace"
hdc_std file recv /data/mynewtrace.ftrace .
pause