Describe your feature request
Atm, the profile-mem flag only generates a memory (heap) profile. It would be helpful to have the trace file generated alongside the memory profile when the profile-mem flag is used.
Describe the use case of the feature
Update the behavior so that when the profile-mem flag is specified, both the memory profile and trace file are created.
Executing a command with -profile-mem=OUT arg should result in both a memory profile (OUT.prof) and a trace file (OUT.trace) being generated.
Describe alternatives you've considered
No response
Additional context
No response