ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

This manual page is associated with the Mac OS X developer tools. The software or headers described may not be present on your Mac OS X installation until you install the developer tools package. This package is available on your Mac OS X installation DVD, and the latest versions can be downloaded from developer.apple.com.

For more information about the manual page format, see the manual page for manpages(5).



instruments(1)            BSD General Commands Manual           instruments(1)

NAME
     instruments, version 1.0

USAGE
     instruments [-t template] [-d document] [-l timeLimit] [-i #] [[-p pid] | [-a application [-e variable
     value] [-g argument]]]

DESCRIPTION
     Runs an Instruments template from the command line.

     Options are :

     -t template
              The path to the template to run

     -s       Show list of known templates and exit

     -d document
              The path to save the trace document data to (This may already exist, in which case a new Run
              will be added)

     -l #     The limit of milliseconds to record until termination ( infinite is default )

     -i #     The index of the instrument to apply the following target data to ( default if missing )

     -p pid   The ID of the process to attach to

     -a application
              The path to the application or command to launch

     -e variable value
              An environment variable setting (You may specify more than one)

     -g argument
              Command line argument to be sent to the launched process (You may specify more than one)

     -v       Turn on verbose logging

FILES
     /usr/bin/instruments                          Executable

SEE ALSO
     /Developer/Applications/Instruments.app may be used to perform trace executions in a graphical environ-ment environment
     ment and may also be used to open trace documents created in either instruments or Instruments.app.

EXAMPLES
     instruments -t mytemplate -a myapp.app

Mac OS                           April 2, 2008                          Mac OS

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.