# Cloud Profiler V2 API - Module Google::Cloud::Profiler::V2::ProfileType (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.10.1 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.5 Reference documentation and code samples for the Cloud Profiler V2 API module Google::Cloud::Profiler::V2::ProfileType.

ProfileType is type of profiling data.
NOTE: the enumeration member names are used (in lowercase) as unique string
identifiers of profile types, so they must not be renamed.

## Constants

### PROFILE_TYPE_UNSPECIFIED

**value:** 0  
Unspecified profile type.

### CPU

**value:** 1  
Thread CPU time sampling.

### WALL

**value:** 2  
Wallclock time sampling. More expensive as stops all threads.

### HEAP

**value:** 3  
In-use heap profile. Represents a snapshot of the allocations that are
live at the time of the profiling.

### THREADS

**value:** 4  
Single-shot collection of all thread stacks.

### CONTENTION

**value:** 5  
Synchronization contention profile.

### PEAK_HEAP

**value:** 6  
Peak heap profile.

### HEAP_ALLOC

**value:** 7  
Heap allocation profile. It represents the aggregation of all allocations
made over the duration of the profile. All allocations are included,
including those that might have been freed by the end of the profiling
interval. The profile is in particular useful for garbage collecting
languages to understand which parts of the code create most of the garbage
collection pressure to see if those can be optimized.