feat: add process.takeHeapSnapshot() / webContents.takeHeapSnapshot() (#14456)
This commit is contained in:
parent
1855144d26
commit
e22142ef9c
17 changed files with 262 additions and 5 deletions
17
atom/common/heap_snapshot.h
Normal file
17
atom/common/heap_snapshot.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright (c) 2018 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef ATOM_COMMON_HEAP_SNAPSHOT_H_
|
||||
#define ATOM_COMMON_HEAP_SNAPSHOT_H_
|
||||
|
||||
#include "base/files/file.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
bool TakeHeapSnapshot(v8::Isolate* isolate, base::File* file);
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_COMMON_HEAP_SNAPSHOT_H_
|
Loading…
Add table
Add a link
Reference in a new issue