Tabulation.log_call_trace: do nothing if footprint is false

Reviewed By: jvillard

Differential Revision: D9218172

fbshipit-source-id: aad5109e4
master
Mehdi Bouaziz 6 years ago committed by Facebook Github Bot
parent 8a6aa4b1fd
commit 66d37a496a

@ -82,6 +82,7 @@ let print_results tenv actual_pre results =
let log_call_trace ~caller_name ~callee_name ?callee_attributes ?reason ?dynamic_dispatch loc res =
if !Config.footprint then
let get_valid_source_file loc =
let file = loc.Location.file in
if SourceFile.is_invalid file then None else Some file
@ -111,7 +112,7 @@ let log_call_trace ~caller_name ~callee_name ?callee_attributes ?reason ?dynamic
; reason
; dynamic_dispatch }
in
if !Config.footprint then EventLogger.log call_trace
EventLogger.log call_trace
(***************)

Loading…
Cancel
Save