File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1240,6 +1240,13 @@ def run_stage_instrument_run(self):
1240
1240
with self .get_stage_runner () as s :
1241
1241
exit_code = s .execute_command (self , image_run_cmd )
1242
1242
if exit_code == 0 :
1243
+ if not self .config .profile_path .exists ():
1244
+ # The shutdown hook does not trigger for certain apps (GR-60456)
1245
+ mx .abort (
1246
+ f"Profile file { self .config .profile_path } does not exist "
1247
+ f"even though the instrument run terminated successfully with exit code 0. "
1248
+ f"A workaround might be possible by setting the 'ProfilingDumpPeriod' runtime option."
1249
+ )
1243
1250
print (f"Profile file { self .config .profile_path } sha1 is { mx .sha1OfFile (self .config .profile_path )} " )
1244
1251
self ._ensureSamplesAreInProfile (self .config .profile_path )
1245
1252
else :
You can’t perform that action at this time.
0 commit comments