Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            Workload w = new Workload(new string[] {
                "a.gz", "b.mpt.0", "b.mpt.1", "b.mpt.0(1)", "b.mpt.1(1)", "a.gz"
            });

            Console.WriteLine("--- {0} CPUs: ---", w.Count);
            for (int i = 0; i < w.Count; i++)
            {
                Console.WriteLine("CPU {0}: file {1}, group {2}, thd {3}",
                                  i, w.getFile(i), w.getGroup(i), w.getThread(i));
            }

            Console.WriteLine("--- {0} Groups: ---", w.GroupCount);
            for (int i = 0; i < w.GroupCount; i++)
            {
                Console.Write("Group {0}: ", i);
                for (int j = 0; j < w.getGroupSize(i); j++)
                {
                    Console.Write("{0} ", w.mapThd(i, j));
                }
                Console.WriteLine();
            }
        }
Ejemplo n.º 2
0
        public static void Main(string[] args)
        {
            Workload w = new Workload(new string[] {
                    "a.gz", "b.mpt.0", "b.mpt.1", "b.mpt.0(1)", "b.mpt.1(1)", "a.gz"
                });

            Console.WriteLine("--- {0} CPUs: ---", w.Count);
            for (int i = 0; i < w.Count; i++)
            {
                Console.WriteLine("CPU {0}: file {1}, group {2}, thd {3}",
                                  i, w.getFile(i), w.getGroup(i), w.getThread(i));
            }

            Console.WriteLine("--- {0} Groups: ---", w.GroupCount);
            for (int i = 0; i < w.GroupCount; i++)
            {
                Console.Write("Group {0}: ", i);
                for (int j = 0; j < w.getGroupSize(i); j++)
                    Console.Write("{0} ", w.mapThd(i, j));
                Console.WriteLine();
            }
        }