chore: check GetAgent as GetTracingController() crashes if no agent is set

This commit is contained in:
Samuel Attard 2018-10-26 16:22:41 +11:00 committed by deepak1556
parent b1e69e1357
commit 5798b152a6
2 changed files with 2 additions and 1 deletions

View file

@ -45,6 +45,7 @@ namespace tracing {
class TraceEventHelper {
public:
static v8::TracingController* GetTracingController();
static node::tracing::Agent* GetAgent();
static void SetAgent(node::tracing::Agent* agent);
};