MCPcopy Create free account
hub / github.com/evalplus/evalplus / simple_test_profiler

Function simple_test_profiler

evalplus/perf/profile.py:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def simple_test_profiler():
32 # assert linux
33 assert system() == "Linux", "EvalPerf requires Linux's perf_event_open"
34 try:
35 with Collector():
36 pass
37 except Exception as e:
38 print("It seems your system does not support instruction counting.")
39 print("Try this on Linux:")
40 print(" sudo sh -c 'echo 0 > /proc/sys/kernel/perf_event_paranoid' ")
41 print("Also check more info at: https://github.com/s7nfo/Cirron")
42 print("Re-raising the original exception...")
43 raise e
44
45
46def are_profiles_broken(profiles) -> bool:

Callers 1

scriptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…