Fix with profiling option (#8266)

close #8156

Followup to #8254. For some reason, I did not commit this change to the original PR.
This commit is contained in:
Dmitry Bushev 2023-11-09 09:26:00 +00:00 committed by GitHub
parent 6be94a854b
commit 210c1907a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1299,6 +1299,7 @@ object Main {
} }
sampler.start() sampler.start()
profilingConfig.profilingTime.foreach(sampler.stop(_)(executor)) profilingConfig.profilingTime.foreach(sampler.stop(_)(executor))
sys.addShutdownHook(sampler.stop())
try { try {
main main