예제 #1
0
        public void SchedHeader()
        {
            string path = Constants.GetTestingPerfDumpPath("one_complete_switch");

            this.HeaderTest(path, blockedTime: true,
                            commands: new string[] { "comm1", "comm2" },
                            pids: new int[] { 0, 1 },
                            tids: new int[] { 0, 1 },
                            cpus: new int[] { 0, 1 },
                            times: new double[] { 0.0, 1.0 },
                            timeProperties: new int[] { 1, 1 },
                            events: new string[] { "sched", "sched" },
                            eventProperties: new string[] { "sched_switch: prev_comm=comm1 prev_pid=0 prev_prio=0 prev_state=S ==> next_comm=comm2 next_pid=1 next_prio=1", "sched_switch: prev_comm=comm2 prev_pid=1 prev_prio=0 prev_state=S ==> next_comm=comm1 next_pid=0 next_prio=1" },
                            eventKinds: new EventKind[] { EventKind.Scheduler, EventKind.Scheduler },
                            switches: new ScheduleSwitch[]
            {
                new ScheduleSwitch("comm1", 0, 0, 'S', "comm2", 1, 1),
                new ScheduleSwitch("comm2", 1, 0, 'S', "comm1", 0, 1)
            });
        }
예제 #2
0
        public void TwoAlteredLongSamples()
        {
            string path = Constants.GetTestingPerfDumpPath("twodifferentlongstacks");

            InterningStackCountTest(path, expectedStackCount: 10);
        }
예제 #3
0
        public void TwoSameLongSamples()
        {
            string path = Constants.GetTestingPerfDumpPath("twogenericsamelongstacks");

            InterningStackCountTest(path, expectedStackCount: 8);
        }
예제 #4
0
        public void OneSample()
        {
            string path = Constants.GetTestingPerfDumpPath("onegeneric");

            InterningStackCountTest(path, expectedStackCount: 3);
        }
예제 #5
0
        public void MixedBlocked()
        {
            string path = Constants.GetTestingPerfDumpPath("mixed_switches");

            this.TotalBlockedTimeTest(path, expectedTotalBlockedPeriod: 8.0);
        }
예제 #6
0
        public void NoTimeBlocked2_Induced()
        {
            string path = Constants.GetTestingPerfDumpPath("notimeblocked_induced");

            this.TotalBlockedTimeTest(path, expectedTotalBlockedPeriod: 2.0);
        }
예제 #7
0
        public void OneIncomplateContextSwitch()
        {
            string path = Constants.GetTestingPerfDumpPath("one_incomplete_switch");

            this.TotalBlockedTimeTest(path, expectedTotalBlockedPeriod: 1.0);
        }
예제 #8
0
        public void NoTimeBlocked1()
        {
            string path = Constants.GetTestingPerfDumpPath("onegeneric");

            TotalBlockedTimeTest(path, expectedTotalBlockedPeriod: 0.0);
        }
예제 #9
0
        public void TwoSameSamples()
        {
            string path = Constants.GetTestingPerfDumpPath("twogenericsame");

            this.InterningStackCountTest(path, expectedStackCount: 3);
        }