uber / nanoscope-art

Apache License 2.0
49 stars 13 forks source link

Prevent double start for startup tracing #21

Closed Leland-Takamine closed 6 years ago

Leland-Takamine commented 6 years ago

NanoscopePropertyWatcher::watch logic assumes that refresh_state is idempotent with respect to the system property value. This change fixes a bug where this was not the case. We now make sure start_tracing is only called once for multiple refresh_state calls.