Fix dhat support for turbo dev (#67166)
Build next-swc using the dhat feature:
```
pnpm pack-next --features __internal_dhat-heap
```
### Testing with dev
```
pnpm dev --turbo
```
Hit <kbd>ctrl</kbd>+<kbd>c</kbd>, and see the dhat output:
```
[dhat]: Teardown profiler
dhat: Total: 10,246,437 bytes in 84,934 blocks
dhat: At t-gmax: 4,129,935 bytes in 42,733 blocks
dhat: At t-end: 4,118,268 bytes in 42,728 blocks
dhat: The data has been saved to dhat-heap.json, and is viewable with dhat/dh_view.html
```
### Check that we didn't regress turbotrace
Modify a project's `next.config.mjs` to enable turbotrace:
```
experimental: {
turbotrace: {}
}
```
run `pnpm build` and see that we get output from dhat at the end:
```
dhat: Total: 108,876,305 bytes in 716,123 blocks
dhat: At t-gmax: 53,145,524 bytes in 338,440 blocks
dhat: At t-end: 53,145,524 bytes in 338,440 blocks
dhat: The data has been saved to dhat-heap.json, and is viewable with dhat/dh_view.html
```