2011-01-27 12 views

Respuesta

15

instrumentos tiene una interfaz de línea de comandos:

$ instruments -h 

Ejemplo de uso:

$ instruments -t mytemplate -a myapp.app 

Para fugas, probar el Leaks.tracetemplate. Para ver todas las plantillas disponibles, use -s.

Hay otro ejecutable, simplemente llamado leaks. Puede inspeccionar cualquier aplicación que se ejecuta dando leaks su 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. 

Leer más sobre fugas en el desarrollo de Apple reference library.

+0

¿Sabe usted si es posible ¿iniciar o adjuntar la herramienta UIAutomation a un proceso en el dispositivo iOS real utilizando la interfaz de línea de comandos de Instruments? – Casp

+3

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

+2

Solo el nombre del proceso también funcionará: 'se filtra MobileSafari' –

Cuestiones relacionadas