mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
Merge remote-tracking branch 'origin/main' into claude/add-bun-ms
# Conflicts: # bench/runner.mjs # bunfig.toml # docs/cli/install.md # docs/runtime/bunfig.mdx # docs/runtime/utils.mdx # src/install/PackageManager/PackageManagerEnqueue.zig
This commit is contained in:
@@ -48,6 +48,8 @@
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
extern "C" size_t Bun__Feature__heap_snapshot;
|
||||
|
||||
BUN_DECLARE_HOST_FUNCTION(Bun__DNS__lookup);
|
||||
BUN_DECLARE_HOST_FUNCTION(Bun__DNS__resolve);
|
||||
BUN_DECLARE_HOST_FUNCTION(Bun__DNS__resolveSrv);
|
||||
@@ -598,6 +600,8 @@ JSC_DEFINE_HOST_FUNCTION(functionGenerateHeapSnapshot, (JSC::JSGlobalObject * gl
|
||||
auto& heapProfiler = *vm.heapProfiler();
|
||||
heapProfiler.clearSnapshots();
|
||||
|
||||
Bun__Feature__heap_snapshot += 1;
|
||||
|
||||
JSValue arg0 = callFrame->argument(0);
|
||||
auto throwScope = DECLARE_THROW_SCOPE(vm);
|
||||
bool useV8 = false;
|
||||
|
||||
Reference in New Issue
Block a user