We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8acb8bb commit 19be949Copy full SHA for 19be949
pypop/prv.py
@@ -285,6 +285,11 @@ def profile_openmp_regions(self, no_progress=False):
285
region_ends = thread_events.index[thread_events["value"] == 0]
286
287
# Now sanity check regions and try to repair issues caused by missing events:
288
+ # Cut traces seem to have an extra end event injected by the cutter trying to
289
+ # be "helpful" If this seems to be the case try trimming the end and post a
290
+ # warning
291
+ if len(region_ends) == len(region_starts) + 1:
292
+ region_ends = region_ends[:-1]
293
294
# First region start should be earlier than first region end
295
if region_ends[0] <= region_starts[0]:
0 commit comments