|
N|Solid
|
class that allows taking heap snapshots from a specific JS thread. More...
#include <nsolid.h>
Public Types | |
| using | snapshot_proxy_sig = void(*)(int, std::string, void *) |
Public Member Functions | |
| template<typename Cb , typename... Data> | |
| int | TakeSnapshot (uint64_t thread_id, Cb &&cb, Data &&... data) |
| allows taking a heap snapshot from a specific JS thread. Only 1 concurrent snapshot per thread can be taken. More... | |
class that allows taking heap snapshots from a specific JS thread.
| int node::nsolid::Snapshot::TakeSnapshot | ( | uint64_t | thread_id, |
| Cb && | cb, | ||
| Data &&... | data | ||
| ) |
allows taking a heap snapshot from a specific JS thread. Only 1 concurrent snapshot per thread can be taken.
| thread_id | JS thread to take the snapshot from. |
| cb | callback function with the following signature: cb(int status, std::string snapshot, ...Data) |
| data | variable number of arguments to be propagated to the callback. |
1.8.17