Skip to content

Commit

Permalink
Update function call
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsakh committed Oct 4, 2018
1 parent f72032d commit 011a852
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions atom/common/api/atom_bindings.cc
Expand Up @@ -216,10 +216,10 @@ v8::Local<v8::Promise> AtomBindings::GetMemoryFootprint(v8::Isolate* isolate) {
scoped_refptr<util::Promise> promise = new util::Promise(isolate);
node::Environment* env = node::Environment::GetCurrent(isolate);
memory_instrumentation::MemoryInstrumentation::GetInstance()
->RequestGlobalDump(std::vector<std::string>(),
base::AdaptCallbackForRepeating(base::BindOnce(
&AtomBindings::DidReceiveMemoryDump,
base::Unretained(env), promise)));
->RequestGlobalDumpForPid(base::GetCurrentProcId(),
base::AdaptCallbackForRepeating(base::BindOnce(
&AtomBindings::DidReceiveMemoryDump,
base::Unretained(env), promise)));
return promise->GetHandle();
}

Expand Down

0 comments on commit 011a852

Please sign in to comment.