But it works fine with Instruments->Time Profiler
.
All the other documents are closed.
Am trying to find a tool to find how much memory is used by my c++ code.
But it works fine with Instruments->Time Profiler
.
All the other documents are closed.
Am trying to find a tool to find how much memory is used by my c++ code.
2
Answers
You need to disable SIP to be able to profile memory https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection?language=objc
You can fix this without disabling SIP by running the following command in
zsh
. It will sign your binary with theget-task-allow
entitlement, which allows debugging.Source: https://cocoaphony.micro.blog/2022/10/29/solving-required-kernel.html
Thanks to Mārtiņš Možeiko for pointing me toward this solution.