Skip to content

Commit 26e582a

Browse files
committed
reenable stat checkpointing
1 parent b463654 commit 26e582a

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/sst/elements/miranda/mirandaCPU.h

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@ class RequestGenCPU : public SST::Component {
160160
SST_SER(cacheLine);
161161
SST_SER(maxOpLookup);
162162

163+
SST_SER(statReqs);
164+
SST_SER(statSplitReqs);
165+
SST_SER(statCyclesWithIssue);
166+
SST_SER(statMaxIssuePerCycle);
167+
SST_SER(statCyclesWithoutIssue);
168+
SST_SER(statBytes);
169+
SST_SER(statReqLatency);
170+
SST_SER(statTime);
171+
SST_SER(statCyclesHitFence);
172+
SST_SER(statCyclesHitReorderLimit);
173+
SST_SER(statCycles);
174+
163175
}
164176

165177
ImplementSerializable(SST::Miranda::RequestGenCPU)
@@ -199,12 +211,12 @@ class RequestGenCPU : public SST::Component {
199211
uint64_t cacheLine;
200212
uint32_t maxOpLookup;
201213

202-
Statistic<uint64_t>* statReqs[OPCOUNT];
203-
Statistic<uint64_t>* statSplitReqs[OPCOUNT];
214+
Statistic<uint64_t>* statReqs[OPCOUNT] = {nullptr, nullptr, nullptr, nullptr};
215+
Statistic<uint64_t>* statSplitReqs[OPCOUNT] = {nullptr, nullptr, nullptr, nullptr};
204216
Statistic<uint64_t>* statCyclesWithIssue;
205217
Statistic<uint64_t>* statMaxIssuePerCycle;
206218
Statistic<uint64_t>* statCyclesWithoutIssue;
207-
Statistic<uint64_t>* statBytes[OPCOUNT];
219+
Statistic<uint64_t>* statBytes[OPCOUNT] = {nullptr, nullptr, nullptr, nullptr};
208220
Statistic<uint64_t>* statReqLatency;
209221
Statistic<uint64_t>* statTime;
210222
Statistic<uint64_t>* statCyclesHitFence;

0 commit comments

Comments
 (0)