public SimulationStat(int numCores, uint numThreadsPerCore) { ProcessorStat processor = new ProcessorStat (); for (int i = 0; i < numCores; i++) { CoreStat core = new CoreStat (); for (int j = 0; j < numThreadsPerCore; j++) { ContextStat context = new ContextStat (); processor.Contexts.Add (context); } processor.Cores.Add (core); } this.Processor = processor; this.L2Cache = new CacheStat (); this.MainMemory = new MainMemoryStat (); this.Reset (); }
public SimulationStat(ProcessorStat processor) { this.Processor = processor; this.L2Cache = new CacheStat (); this.MainMemory = new MainMemoryStat (); this.Reset (); }