| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,6 +58,10 @@ def __init__(self, pid, sample_interval_usec, all_threads, *, mode=PROFILING_MOD | |||
| 58 | 58 | try: | |
| 59 | 59 | self.unwinder = self._new_unwinder(native, gc, opcodes, skip_non_matching_threads) | |
| 60 | 60 | except RuntimeError as err: | |
| 61 | + if os.name == "nt" and sys.executable.endswith("python.exe"): | ||
| 62 | + raise SystemExit( | ||
| 63 | + "Running profiling.sampling from virtualenv on Windows platform is not supported" | ||
| 64 | + ) from err | ||
| 61 | 65 | raise SystemExit(err) from err | |
| 62 | 66 | # Track sample intervals and total sample count | |
| 63 | 67 | self.sample_intervals = deque(maxlen=100) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments