Skip to content

Commit 41c6002

Browse files
committed
Produce separate callgrind profiles for each incremental update
1 parent 377507b commit 41c6002

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tatum_test/profile.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ bool profile_incr(size_t num_iterations,
146146
#ifdef TATUM_TEST_PROFILE_CALLGRIND
147147
CALLGRIND_TOGGLE_COLLECT;
148148
std::cout << "Toggle Collect (End)\n";
149+
std::stringstream ss;
150+
ss << "incr_update" << i;
151+
std::cout << "Callgrind Dump Stats " << ss.str() << "\n";
152+
CALLGRIND_DUMP_STATS_AT(ss.str().c_str());
149153
#endif
150154
ref_analyzer->update_timing();
151155

@@ -178,8 +182,6 @@ bool profile_incr(size_t num_iterations,
178182
}
179183

180184
#ifdef TATUM_TEST_PROFILE_CALLGRIND
181-
std::cout << "Callgrind Dump Stats\n";
182-
CALLGRIND_DUMP_STATS;
183185
std::cout << "Callgrind Stop Instrumentation\n";
184186
CALLGRIND_STOP_INSTRUMENTATION;
185187
#endif

0 commit comments

Comments
 (0)