1
我創建了聲明宏下面示例應用程序:如何解釋此iOS儀器數據?
#define kSampleString @"didReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarningdidReceiveMemoryWarning"
當用戶點擊下面的事件處理程序,我登錄宏字符串。
-(IBAction)SampleMethod:(id)sender{
NSLog(@"Log %@",kSampleString);
}
下面是儀器的數據我有:
在檢查儀器的撥款,我得到了以下信息。我能夠發現分配發生在紅色標記區域的NSLogv調用中。但是,如何解釋與NSLogv有關的其他事情。那些malloc操作發生了什麼?
誰知道NSLog的核心潛伏着什麼邪惡? –
@HotLicks [顯然這個傢伙](http://www.karlkraft.com/index.php/2009/03/23/114/) – CodaFi
難道你不能通過暴露擴展詳細視圖來看它來自哪裏在右側?這應該顯示負責分配的堆棧跟蹤。 –