added pause/resume behaviour to stat collection

This commit is contained in:
Eric Matthews 2020-12-02 14:55:05 -08:00
parent c2c71f79a3
commit 6ba93a3f63
2 changed files with 6 additions and 2 deletions

View file

@ -146,10 +146,13 @@ void TaigaTracer<TB>::tick() {
if (check_instruction_issued(BENCHMARK_START_COLLECTION_NOP)) {
collect_stats = true;
reset_stats();
collect_stats = true;
}
if (check_instruction_issued(BENCHMARK_END_COLLECTION_NOP)) {
else if (check_instruction_issued(BENCHMARK_RESUME_COLLECTION_NOP)) {
collect_stats = true;
}
else if (check_instruction_issued(BENCHMARK_END_COLLECTION_NOP)) {
collect_stats = false;
}

View file

@ -32,6 +32,7 @@
#define COMPLIANCE_SIG_PHASE_NOP 0x00B00013U
#define BENCHMARK_START_COLLECTION_NOP 0x00C00013U
#define BENCHMARK_END_COLLECTION_NOP 0x00D00013U
#define BENCHMARK_RESUME_COLLECTION_NOP 0x00E00013U
#define ERROR_TERMINATION_NOP 0x00F00013U
#define SUCCESS_TERMINATION_NOP 0x00A00013U