runtime: create runtime_realgcount func to reduce one time stw when fetch goroutine profile #54014
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Jun10ng commentedJul 23, 2022
Using
goroutineProfileWithLabelsConcurrent
to fetch the number of goroutines leads to STW,Maybe we can directly call
gcount() + fing
to avoid STW on pre-profile phase.@rhysh If I were wrong, please correct me, thanks.
The text was updated successfully, but these errors were encountered: