本文整理汇总了Python中trace.Trace.setXTimeRange方法的典型用法代码示例。如果您正苦于以下问题:Python Trace.setXTimeRange方法的具体用法?Python Trace.setXTimeRange怎么用?Python Trace.setXTimeRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类trace.Trace
的用法示例。
在下文中一共展示了Trace.setXTimeRange方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: plotdir
# 需要导入模块: from trace import Trace [as 别名]
# 或者: from trace.Trace import setXTimeRange [as 别名]
def plotdir(run_dir, platform):
global args
tasks = None
pa = None
# Load RTApp performance data
try:
pa = PerfAnalysis(run_dir)
# Get the list of RTApp tasks
tasks = pa.tasks()
logging.info('Tasks: %s', tasks)
except ValueError:
pa = None
logging.info('No performance data found')
# Load Trace Analysis modules
trace = Trace(platform, run_dir)
# Define time ranges for all the temporal plots
trace.setXTimeRange(args.tmin, args.tmax)
# Tasks plots
if 'tasks' in args.plots:
trace.analysis.tasks.plotTasks(tasks)
if pa:
for task in tasks:
pa.plotPerf(task)
# Cluster and CPUs plots
if 'clusters' in args.plots:
trace.analysis.frequency.plotClusterFrequencies()
if 'cpus' in args.plots:
trace.analysis.cpus.plotCPU()
# SchedTune plots
if 'stune' in args.plots:
trace.analysis.eas.plotSchedTuneConf()
if 'ediff' in args.plots:
trace.analysis.eas.plotEDiffTime();
if 'edspace' in args.plots:
trace.analysis.eas.plotEDiffSpace();