diff options
author | 2021-12-21 18:48:52 -0800 | |
---|---|---|
committer | 2021-12-21 18:48:52 -0800 | |
commit | ff99155f7da66ee3b9cb38637ce4ce78945ea157 (patch) | |
tree | 5e1414a59b95a35e8592ff4a0d131bb57a329844 /src/cli/bun_command.zig | |
parent | dc2dae5d87f82e8c816bbbffb14e0d22d342550a (diff) | |
download | bun-ff99155f7da66ee3b9cb38637ce4ce78945ea157.tar.gz bun-ff99155f7da66ee3b9cb38637ce4ce78945ea157.tar.zst bun-ff99155f7da66ee3b9cb38637ce4ce78945ea157.zip |
--dump-limits flag to inspect what the max file descriptor & stack size is
Diffstat (limited to 'src/cli/bun_command.zig')
-rw-r--r-- | src/cli/bun_command.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cli/bun_command.zig b/src/cli/bun_command.zig index a25b33c88..b8d7d3484 100644 --- a/src/cli/bun_command.zig +++ b/src/cli/bun_command.zig @@ -114,6 +114,12 @@ pub const BunCommand = struct { return; } + if (ctx.debug.dump_limits) { + fs.FileSystem.printLimits(); + std.os.exit(0); + return; + } + var generated_server = false; if (this_bundler.options.framework) |*framework| { if (framework.toAPI(allocator, this_bundler.fs.top_level_dir) catch null) |_server_conf| { |