Skip to content

Commit a8306be

Browse files
alexmalyshevmeta-codesync[bot]
authored andcommitted
Add JIT_DLOG for total compile time on finalization
Summary: Making it easy to see how much time was spent compiling code. Reviewed By: mpage Differential Revision: D91328119 fbshipit-source-id: 215e613c35b3e0c850955db88c73b2ce672f37e5
1 parent f2d0437 commit a8306be

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cinderx/Jit/pyjit.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,6 +3409,9 @@ void finalize() {
34093409
// metadata that we will be freeing later in this function.
34103410
PyUnstable_GC_VisitObjects(deopt_gen_visitor, nullptr);
34113411

3412+
JIT_DLOG(
3413+
"CinderX JIT Total Compilation Time: {}", jitCtx()->totalCompileTime());
3414+
34123415
if (getConfig().log.dump_stats) {
34133416
dump_jit_stats();
34143417
}

0 commit comments

Comments
 (0)