ChampSim
phase_info.h
Go to the documentation of this file.
1 /*
2  * Copyright 2023 The ChampSim Contributors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef PHASE_INFO_H
18 #define PHASE_INFO_H
19 
20 #include <cstdint>
21 #include <memory>
22 #include <string>
23 #include <vector>
24 
25 #include "cache.h"
26 #include "dram_controller.h"
27 #include "ooo_cpu.h"
28 #include <string_view>
29 
30 namespace champsim
31 {
32 
33 struct phase_info {
34  std::string name;
35  bool is_warmup;
36  uint64_t length;
37  std::vector<std::size_t> trace_index;
38  std::vector<std::string> trace_names;
39 };
40 
41 struct phase_stats {
42  std::string name;
43  std::vector<std::string> trace_names;
44  std::vector<O3_CPU::stats_type> roi_cpu_stats, sim_cpu_stats;
45  std::vector<CACHE::stats_type> roi_cache_stats, sim_cache_stats;
46  std::vector<DRAM_CHANNEL::stats_type> roi_dram_stats, sim_dram_stats;
47 };
48 
49 } // namespace champsim
50 
51 #endif
Definition: champsim.h:24
Definition: phase_info.h:33
uint64_t length
Definition: phase_info.h:36
bool is_warmup
Definition: phase_info.h:35
std::vector< std::size_t > trace_index
Definition: phase_info.h:37
std::vector< std::string > trace_names
Definition: phase_info.h:38
std::string name
Definition: phase_info.h:34
Definition: phase_info.h:41
std::vector< CACHE::stats_type > sim_cache_stats
Definition: phase_info.h:45
std::vector< std::string > trace_names
Definition: phase_info.h:43
std::vector< DRAM_CHANNEL::stats_type > roi_dram_stats
Definition: phase_info.h:46
std::vector< O3_CPU::stats_type > roi_cpu_stats
Definition: phase_info.h:44
std::vector< CACHE::stats_type > roi_cache_stats
Definition: phase_info.h:45
std::string name
Definition: phase_info.h:42
std::vector< DRAM_CHANNEL::stats_type > sim_dram_stats
Definition: phase_info.h:46
std::vector< O3_CPU::stats_type > sim_cpu_stats
Definition: phase_info.h:44