Commit bea0d4f
committed
refactor(profiling): scope the OTEP-4947 start-up probe ids to the probe
canInstallContext() runs exactly once per process, so holding its two ids at
module scope kept them live for the process lifetime to save an allocation that
never repeats. As locals they are collectable as soon as the probe returns.1 parent b0dd1b6 commit bea0d4f
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | 259 | | |
265 | 260 | | |
266 | 261 | | |
| |||
275 | 270 | | |
276 | 271 | | |
277 | 272 | | |
278 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
279 | 277 | | |
280 | 278 | | |
281 | 279 | | |
| |||
0 commit comments