Lines Matching refs:Trace
22 from trace import Trace
24 def run_queue_analysis(trace, threshold):
29 :param trace: input Trace object
30 :type trace: :mod:`libs.utils.Trace`
35 df = trace.data_frame.queue_df()
36 trace.analysis.binder_transaction.plot_samples(df, "delta_t",
39 trace.analysis.binder_transaction.plot_tasks(df, threshold, "__comm_x",
44 def run_buffer_analysis(trace, threshold):
48 :param trace: input Trace object
49 :type trace: :mod:`libs.utils.Trace`
54 df = trace.data_frame.alloc_df()
55 trace.analysis.binder_transaction.plot_samples(df, "size",
56 "sample trace points",
58 trace.analysis.binder_transaction.plot_tasks(df, threshold,
64 def run_alloc_analysis(trace, threshold):
68 :param trace: input Trace object
69 :type trace: :mod:`libs.utils.Trace`
74 df = trace.data_frame.alloc_df()
75 trace.analysis.binder_transaction.plot_samples(df, "delta_t",
84 help="Directory that contains trace.html.")
102 trace_file = os.path.join(args.res_dir, "trace.html")
106 trace = Trace(platform, trace_file, events)
109 df = run_queue_analysis(trace, args.threshold)
111 df = run_buffer_analysis(trace, args.threshold)
113 df = run_alloc_analysis(trace, args.threshold)