follow comments

scopeFix
Xin Pan 7 years ago
parent 5a9f17f02b
commit d1ea74d3b9

@ -434,8 +434,8 @@ int VariableResponse::Parse(Source* source) {
return tag; return tag;
} }
meta_.set_profile(profiling); meta_.set_profile(profiling);
int64_t lisner_id = platform::ListenerId(); int64_t listener_id = platform::ListenerId();
if (lisner_id <= 0) { if (listener_id <= 0) {
break; break;
} }
if (profiling && !platform::IsProfileEnabled()) { if (profiling && !platform::IsProfileEnabled()) {
@ -444,7 +444,7 @@ int VariableResponse::Parse(Source* source) {
// TODO(panyx0718): Should we allow to customize file dir. // TODO(panyx0718): Should we allow to customize file dir.
platform::DisableProfiler( platform::DisableProfiler(
platform::EventSortingKey::kDefault, platform::EventSortingKey::kDefault,
string::Sprintf("/tmp/profile_ps_%lld", lisner_id)); string::Sprintf("/tmp/profile_ps_%lld", listener_id));
} }
break; break;
} }

Loading…
Cancel
Save