Run the @PerformanceCritical checker by default with the other checkers

Summary:
public
Run the PerformanceCritical checker in prod

Reviewed By: cristianoc

Differential Revision: D2707084

fb-gh-sync-id: 730f7e4
master
jrm 9 years ago committed by facebook-github-bot-7
parent 0dfe0b8f75
commit 61e457b1f6

@ -418,9 +418,10 @@ class Infer:
self.timing['makefile_generation'] = 0 self.timing['makefile_generation'] = 0
else: else:
if self.args.analyzer in [config.ANALYZER_ERADICATE, if self.args.analyzer == config.ANALYZER_ERADICATE:
config.ANALYZER_CHECKERS]:
infer_analyze.append('-intraprocedural') infer_analyze.append('-intraprocedural')
if self.args.analyzer == config.ANALYZER_CHECKERS:
os.environ['INFER_ONDEMAND'] = 'Y'
os.environ['INFER_OPTIONS'] = ' '.join(infer_options) os.environ['INFER_OPTIONS'] = ' '.join(infer_options)

@ -360,9 +360,6 @@ let default_failure_name = "ASSERTION_FAILURE"
let analyze_models = from_env_variable "INFER_ANALYZE_MODELS" let analyze_models = from_env_variable "INFER_ANALYZE_MODELS"
(** report expensive calls warnings *)
let report_expensive_calls = from_env_variable "INFER_REPORT_EXPENSIVE_CALLS"
module Experiment = struct module Experiment = struct

@ -35,7 +35,7 @@ let active_procedure_checkers () =
ImmutableChecker.callback_check_immutable_cast, checkers_enabled; ImmutableChecker.callback_check_immutable_cast, checkers_enabled;
RepeatedCallsChecker.callback_check_repeated_calls, checkers_enabled; RepeatedCallsChecker.callback_check_repeated_calls, checkers_enabled;
PrintfArgs.callback_printf_args, checkers_enabled; PrintfArgs.callback_printf_args, checkers_enabled;
PerformanceCritical.callback_performance_checker, Config.report_expensive_calls; PerformanceCritical.callback_performance_checker, checkers_enabled;
] in ] in
IList.map (fun (x, y) -> (x, y, Some Config.Java)) l in IList.map (fun (x, y) -> (x, y, Some Config.Java)) l in
let c_cpp_checkers = let c_cpp_checkers =

@ -18,8 +18,6 @@ java_library(
out = 'out' out = 'out'
clean_cmd = ' '.join(['rm', '-rf', out]) clean_cmd = ' '.join(['rm', '-rf', out])
classpath = ':'.join([('$(classpath ' + path + ')') for path in dependencies]) classpath = ':'.join([('$(classpath ' + path + ')') for path in dependencies])
env_cmd = ' '.join(['export', 'INFER_REPORT_EXPENSIVE_CALLS=1'])
ondemand_mode = ' '.join(['export', 'INFER_ONDEMAND=1'])
infer_cmd = ' '.join([ infer_cmd = ' '.join([
'infer', 'infer',
'--no-progress-bar', '--no-progress-bar',
@ -32,7 +30,7 @@ infer_cmd = ' '.join([
'$SRCS', '$SRCS',
]) ])
copy_cmd = ' '.join(['cp', out + '/report.csv', '$OUT']) copy_cmd = ' '.join(['cp', out + '/report.csv', '$OUT'])
command = ' && '.join([clean_cmd, ondemand_mode, env_cmd, infer_cmd, copy_cmd]) command = ' && '.join([clean_cmd, infer_cmd, copy_cmd])
genrule( genrule(
name = 'analyze', name = 'analyze',

Loading…
Cancel
Save