Пример #1
0
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, tasks)
    ta = TraceAnalysis(trace, tasks)

    # Define time ranges for all the temporal plots
    ta.setXTimeRange(args.tmin, args.tmax)

    # Tasks plots
    if 'tasks' in args.plots:
        ta.plotTasks()
        if pa:
            for task in tasks:
                pa.plotPerf(task)

    # Cluster and CPUs plots
    if 'clusters' in args.plots:
        ta.plotClusterFrequencies()
    if 'cpus' in args.plots:
        ta.plotCPU()

    # SchedTune plots
    if 'stune' in args.plots:
        ta.plotSchedTuneConf()
    if 'ediff' in args.plots:
        ta.plotEDiffTime()
    if 'edspace' in args.plots:
        ta.plotEDiffSpace()
Пример #2
0
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, tasks)
    ta = TraceAnalysis(trace, tasks)

    # Define time ranges for all the temporal plots
    ta.setXTimeRange(args.tmin, args.tmax)

    # Tasks plots
    if 'tasks' in args.plots:
        ta.plotTasks()
        if pa:
            for task in tasks:
                pa.plotPerf(task)

    # Cluster and CPUs plots
    if 'clusters' in args.plots:
        ta.plotClusterFrequencies()
    if 'cpus' in args.plots:
        ta.plotCPU()

    # SchedTune plots
    if 'stune' in args.plots:
        ta.plotSchedTuneConf()
    if 'ediff' in args.plots:
        ta.plotEDiffTime();
    if 'edspace' in args.plots:
        ta.plotEDiffSpace();
Пример #3
0
 def assert_can_read_logfile(self, exp_tasks):
     """Assert that the perf_analysis module understands the log output"""
     pa = PerfAnalysis(self.host_out_dir)
     self.assertSetEqual(set(exp_tasks), set(pa.tasks()))
Пример #4
0
 def assert_can_read_logfile(self, exp_tasks):
     """Assert that the perf_analysis module understands the log output"""
     pa = PerfAnalysis(self.host_out_dir)
     self.assertSetEqual(set(exp_tasks), set(pa.tasks()))