Instruments工具集

Blank

A blank trace document that can be customized with instruments from the Library.

Activity Monitor

Monitors CPU, memory, disk,and network usage statistics for processes and the system.

Allocations

Tracks a process’ anonymous virtual memory and heap, providing class names and optionally retain/release histories for objects.

Cocoa Layout

Observes changes to NSLayoutConstraint objects to help determine when and where a layout constraint went awry.

Core Animation

This template measures application graphics performance as well as CPU usage of a process via time profiling.

Core Data

This template traces Core Data filesystem activity, including fetches,cache misses, and saves.

Counters

Collects performance monitor counter(PMC) events using time or event based sampling methods.

Energy Log

This template provides diagnostics regarding energy usage as well as basic on/off state of major device components.

File Activity

This template monitors file and directory activity, including file open/close calls, file permission modifications,directory creation, file moves,etc.

Leaks

Measures general memory usage,checks for leaked memory,and provides statistics on object allocations by class as well as memory address histories for all active allocations and leaked blocks.

Metal System Trace

Metal System Trace profiles the performance of iOS,tvOS and macOS Metal applications by providing tracing information from the application,driver,and GPU layers.

Network

Analyze how your applications are using TCP/IP connections using the Connections instrument.

SceneKit

Profiles an application’s use of SceneKit.Determines the type of work going into each frame, such as animations, physics,scene culling,and rendering.

System Trace

A comprehensive view of what’s happening in the operationg system. See how threads are being scheduled across CPUs and understand how system calls and virtual memory faults anr affectiong your application’s Performance.

System Usage

This template records I/O system activity related to files, sockets,and shared memory for a single process launched via instruments, Inputs, outputs,duration,backtrace,calltree,etc.is provided for each call.

Time Profiler

Performs low-overhead time -based sampling of processes runing on the system’s CPUs.

Zombies

Measures general memory usage while focusing on the delection of over - released “zombie” objects. Also statistics on object allocations by class as well as memory address histories for all active allocations.