Use trace event with zero args

This commit is contained in:
Kevin Sawicki 2016-12-12 13:49:58 -08:00
parent a7a06a483e
commit 3796d7a6a1
2 changed files with 2 additions and 8 deletions

View file

@ -18,7 +18,6 @@
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_paths.h"
#include "native_mate/dictionary.h"
@ -242,9 +241,7 @@ void NodeBindings::UvRunOnce() {
v8::MicrotasksScope::kRunMicrotasks);
if (!is_browser_)
TRACE_EVENT_BEGIN1("devtools.timeline", "FunctionCall", "data",
std::unique_ptr<base::trace_event::TracedValue>(
new base::trace_event::TracedValue()));
TRACE_EVENT_BEGIN0("devtools.timeline", "FunctionCall");
// Deal with uv events.
int r = uv_run(uv_loop_, UV_RUN_NOWAIT);