๐Ÿ”ฌProfiling WorkshopWORKSHOP
1
2
3
4

Step 1

Use `runtime.ReadMemStats` to measure heap allocations. Allocate a large slice, read MemStats before and after, and print the difference in `Alloc` (bytes currently on the heap). Import `runtime` and `fmt`.

โŒ˜ Enter (Mac) ยท Ctrl+Enter (Win/Linux)