什么是 malloc:使用 lite 模式记录 malloc(但不是 VM 分配)堆栈
What is malloc: recording malloc (but not VM allocation) stacks using lite mode
您好,xcode 调试中的以下消息是什么。
SomeApp(2389,0x1092763c0) malloc:使用精简模式记录 malloc(但不是 VM 分配)堆栈
xCode 8.3
日志消息似乎来自
libmalloc-53.1.1/src/malloc.c
因为源代码可用here
在第 567 行 - 或者至少在文本 "recording malloc (but not VM".
中搜索
malloc_printf(ASL_LEVEL_INFO, "recording malloc (but not VM allocation) stacks to disk using standard recorder\n");
关于日志环境,你应该看看Apple documentation。
如果您担心日志消息,我会参考源中的内联注释:
// Set up stack logging as early as possible to catch all ensuing VM allocations,
// including those from _malloc_printf and malloc zone setup. Make sure to set
// __syscall_logger after this, because prepare_to_log_stacks() itself makes VM
// allocations that we aren't prepared to log yet.
所以我想你应该忽略它,除非你想调试内存分配。
为了set/unset malloc调试环境,select Edit Scheme...从项目工具栏进入诊断面板。
您好,xcode 调试中的以下消息是什么。
SomeApp(2389,0x1092763c0) malloc:使用精简模式记录 malloc(但不是 VM 分配)堆栈
xCode 8.3
日志消息似乎来自
libmalloc-53.1.1/src/malloc.c
因为源代码可用here 在第 567 行 - 或者至少在文本 "recording malloc (but not VM".
中搜索malloc_printf(ASL_LEVEL_INFO, "recording malloc (but not VM allocation) stacks to disk using standard recorder\n");
关于日志环境,你应该看看Apple documentation。
如果您担心日志消息,我会参考源中的内联注释:
// Set up stack logging as early as possible to catch all ensuing VM allocations,
// including those from _malloc_printf and malloc zone setup. Make sure to set
// __syscall_logger after this, because prepare_to_log_stacks() itself makes VM
// allocations that we aren't prepared to log yet.
所以我想你应该忽略它,除非你想调试内存分配。
为了set/unset malloc调试环境,select Edit Scheme...从项目工具栏进入诊断面板。