We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally from https://github.com/org-arl/unet/issues/861
https://valgrind.org/ is great tool for this.
Also look at the macOS tool https://dr-rost.medium.com/detect-memory-leaks-on-macos-4cf257529aa
https://developer.apple.com/library/archive/documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html
Also here's a great guide for how to run valgrind.. https://stackoverflow.com/questions/5134891/how-do-i-use-valgrind-to-find-memory-leaks
The text was updated successfully, but these errors were encountered:
In context of our conversation.. leaks actually works well on the APIs..
❯ leaks --atExit -- ./txdata localhost 1 1101 Connecting to localhost:1101 Transmitting 9 bytes of data to 1 Transmission Complete Process: txdata [83534] Path: /Users/USER/Documents/*/txdata Load Address: 0x106643000 Identifier: txdata Version: ??? Code Type: X86-64 Platform: macOS Parent Process: leaks [83533] Date/Time: 2021-06-11 20:23:14.347 +0800 Launch Time: 2021-06-11 20:23:13.857 +0800 OS Version: macOS 11.4 (20F71) Report Version: 7 Analysis Tool: /Applications/Xcode.app/Contents/Developer/usr/bin/leaks Analysis Tool Version: Xcode 12.5 (12E262) Physical footprint: 496K Physical footprint (peak): 496K ---- leaks Report Version: 4.0 Process 83534: 212 nodes malloced for 20 KB Process 83534: 5 leaks for 80 total leaked bytes. 5 (80 bytes) << TOTAL >> 1 (16 bytes) ROOT LEAK: 0x7fec1ba04080 [16] length: 9 "transport" 1 (16 bytes) ROOT LEAK: 0x7fec1ba04170 [16] length: 9 "transport" 1 (16 bytes) ROOT LEAK: 0x7fec1ba04180 [16] length: 6 "router" 1 (16 bytes) ROOT LEAK: 0x7fec1ba04190 [16] length: 6 "uwlink" 1 (16 bytes) ROOT LEAK: 0x7fec1ba041a0 [16] length: 3 "phy"
Sorry, something went wrong.
prasadtiru
No branches or pull requests
Originally from https://github.com/org-arl/unet/issues/861
The text was updated successfully, but these errors were encountered: