Skip to content

DesktopCdpTransport.collectGarbage method

DesktopCdpTransport › collectGarbage

Runs a full garbage collection in the renderer of the window showing the given vault, through CDP HeapProfiler.collectGarbage. The renderer has no gc() of its own unless launched with --expose-gc, and an attached Obsidian was launched by someone else.

Signature:

collectGarbage(cwd: string): Promise<void>

Parameters:

ParameterTypeDescription
cwdstringThe vault whose window to collect in.

Returns: Promise<void>