Generated from protobuf enumPROFILE_TYPE_UNSPECIFIED = 0;
CPU
Value: 1
Thread CPU time sampling.
Generated from protobuf enumCPU = 1;
WALL
Value: 2
Wallclock time sampling. More expensive as stops all threads.
Generated from protobuf enumWALL = 2;
HEAP
Value: 3
In-use heap profile. Represents a snapshot of the allocations that are
live at the time of the profiling.
Generated from protobuf enumHEAP = 3;
THREADS
Value: 4
Single-shot collection of all thread stacks.
Generated from protobuf enumTHREADS = 4;
CONTENTION
Value: 5
Synchronization contention profile.
Generated from protobuf enumCONTENTION = 5;
PEAK_HEAP
Value: 6
Peak heap profile.
Generated from protobuf enumPEAK_HEAP = 6;
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Profiler V2 Client - Class ProfileType (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-profiler/latest/V2.ProfileType)\n- [2.0.3](/php/docs/reference/cloud-profiler/2.0.3/V2.ProfileType)\n- [1.4.3](/php/docs/reference/cloud-profiler/1.4.3/V2.ProfileType)\n- [1.3.0](/php/docs/reference/cloud-profiler/1.3.0/V2.ProfileType)\n- [1.2.4](/php/docs/reference/cloud-profiler/1.2.4/V2.ProfileType)\n- [1.1.1](/php/docs/reference/cloud-profiler/1.1.1/V2.ProfileType)\n- [1.0.3](/php/docs/reference/cloud-profiler/1.0.3/V2.ProfileType) \nReference documentation and code samples for the Google Cloud Profiler V2 Client class ProfileType.\n\nProfileType is type of profiling data.\n\nNOTE: the enumeration member names are used (in lowercase) as unique string\nidentifiers of profile types, so they must not be renamed.\n\nProtobuf type `google.devtools.cloudprofiler.v2.ProfileType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Profiler \\\\ V2\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### PROFILE_TYPE_UNSPECIFIED\n\n Value: 0\n\nUnspecified profile type.\n\nGenerated from protobuf enum `PROFILE_TYPE_UNSPECIFIED = 0;`\n\n### CPU\n\n Value: 1\n\nThread CPU time sampling.\n\nGenerated from protobuf enum `CPU = 1;`\n\n### WALL\n\n Value: 2\n\nWallclock time sampling. More expensive as stops all threads.\n\nGenerated from protobuf enum `WALL = 2;`\n\n### HEAP\n\n Value: 3\n\nIn-use heap profile. Represents a snapshot of the allocations that are\nlive at the time of the profiling.\n\nGenerated from protobuf enum `HEAP = 3;`\n\n### THREADS\n\n Value: 4\n\nSingle-shot collection of all thread stacks.\n\nGenerated from protobuf enum `THREADS = 4;`\n\n### CONTENTION\n\n Value: 5\n\nSynchronization contention profile.\n\nGenerated from protobuf enum `CONTENTION = 5;`\n\n### PEAK_HEAP\n\n Value: 6\n\nPeak heap profile.\n\nGenerated from protobuf enum `PEAK_HEAP = 6;`\n\n### HEAP_ALLOC\n\n Value: 7\n\nHeap allocation profile. It represents the aggregation of all allocations\nmade over the duration of the profile. All allocations are included,\nincluding those that might have been freed by the end of the profiling\ninterval. The profile is in particular useful for garbage collecting\nlanguages to understand which parts of the code create most of the garbage\ncollection pressure to see if those can be optimized.\n\nGenerated from protobuf enum `HEAP_ALLOC = 7;`"]]