Memory profiling examples