Control idump and gdump with prof_active.

This commit is contained in:
Qi Wang
2018-04-06 13:45:37 -07:00
committed by Qi Wang
parent 6d02421730
commit 2dccf45640
4 changed files with 14 additions and 14 deletions

View File

@@ -1780,7 +1780,7 @@ prof_idump(tsdn_t *tsdn) {
cassert(config_prof);
if (!prof_booted || tsdn_null(tsdn)) {
if (!prof_booted || tsdn_null(tsdn) || !prof_active_get_unlocked()) {
return;
}
tsd = tsdn_tsd(tsdn);
@@ -1837,7 +1837,7 @@ prof_gdump(tsdn_t *tsdn) {
cassert(config_prof);
if (!prof_booted || tsdn_null(tsdn)) {
if (!prof_booted || tsdn_null(tsdn) || !prof_active_get_unlocked()) {
return;
}
tsd = tsdn_tsd(tsdn);