Module util

Source

Structs§

DhatProfilerGuard
An opaque type potentially wrapping a dhat::Profiler instance. If we were not compiled with dhat support, this is an empty struct.

Traits§

MapErr

Functions§

get_target_triple
init_custom_trace_subscriber
Initialize tracing subscriber to emit traces. This configures subscribers for Trace Event Format https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview.
log_internal_error_and_inform
teardown_trace_subscriber
Teardown currently running tracing subscriber to flush out remaining traces. This should be called when parent node.js process exits, otherwise generated trace may drop traces in the buffer.