2011-01-27 13 views

risposta

15

Instruments ha una CLI:

$ instruments -h 

Esempio Utilizzo:

$ instruments -t mytemplate -a myapp.app 

Per le perdite, provare il Leaks.tracetemplate. Per vedere tutti i modelli disponibili, utilizzare -s.

C'è un altro eseguibile, chiamato semplicemente leaks. È possibile controllare qualsiasi applicazione in esecuzione, dando leaks suo PID:

$ ps aux | grep "[b]ash" | awk '{print $2}' 
620 

$ leaks 620 
leaks Report Version: 2.0 
Process:   bash [620] 
Path:   /bin/bash 
Load Address: 0x100000000 
... 
Process 620: 37983 nodes malloced for 1123 KB 
Process 620: 0 leaks for 0 total leaked bytes. 

Per saperne di più perdite nel sviluppatori Apple reference library.

+0

Sapete se è possibile avviare o collegare lo strumento UIAutomation a un processo sull'attuale dispositivo iOS utilizzando l'interfaccia della riga di comando di Strumenti? – Casp

+3

strumenti -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -e UIASCRIPT -e UIARESULTSPATH Trovato su http : //lemonjar.com/blog/? p = 69 – jki

+2

Funzionerà anche il nome del processo: 'perde MobileSafari' –

Problemi correlati