[stats] fix analyzed count

Summary: When using the restart scheduler incrementing the analyzed count before the analysis itself gives wrong results.

Reviewed By: jvillard

Differential Revision: D25367787

fbshipit-source-id: aed22cc68
master
Nikos Gorogiannis 4 years ago committed by Facebook GitHub Bot
parent e4b3971441
commit e152ba8f33

@ -157,9 +157,10 @@ let update_taskbar callee_pdesc =
let analyze callee_summary =
BackendStats.incr_ondemand_procs_analyzed () ;
let exe_env = Option.value_exn !exe_env_ref in
Callbacks.iterate_procedure_callbacks exe_env callee_summary
let summary = Callbacks.iterate_procedure_callbacks exe_env callee_summary in
BackendStats.incr_ondemand_procs_analyzed () ;
summary
let run_proc_analysis ~caller_pdesc callee_pdesc =

Loading…
Cancel
Save