Skip to content

Commit

Permalink
Add JIT dump for memory usage
Browse files Browse the repository at this point in the history
Reviewed By: dannysu

Differential Revision: D69886285

fbshipit-source-id: 679193f7a7cf17bf75850b67758c731a7be99309
  • Loading branch information
avp authored and facebook-github-bot committed Feb 28, 2025
1 parent f513437 commit 28a1529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/VM/JIT/arm64/JIT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ JITCompiledFunctionPtr JITContext::Compiler::compileCodeBlockImpl() {
});

if (jc_.dumpJITCode_ & (DumpJitCode::Code | DumpJitCode::CompileStatus)) {
llvh::outs() << "\nJIT successfully compiled FunctionID "
llvh::outs() << "\nJIT total memory usage (bytes): " << usedSize << "\n";
llvh::outs() << "JIT successfully compiled FunctionID "
<< codeBlock_->getFunctionID() << ", '" << funcName_ << "'\n";
}

Expand Down

0 comments on commit 28a1529

Please sign in to comment.