()
| 29 | |
| 30 | |
| 31 | def 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 | |
| 46 | def are_profiles_broken(profiles) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…