| Non-Confidential - REL | 101545__00_en | |||
| ||||
| Home > The Graphics Analyzer interface > Target-side headless mode > Headless configuration file reference | ||||
The headless configuration file is formatted as JSON. The top-level object contains a single key, processes, which is an array of JSON objects, with each object corresponding to a configuration for an individual process.
Table 5-1 Configuration file keys reference
| Key | Type | Accepted values | Description |
|---|---|---|---|
name |
String | A valid process name, or package name on Android. | Name of the process. This key is required. |
config |
String | fullTrace, everything, balanced, functionsOnly, legacy. Default = legacy. |
Preset config name. |
customConfig |
Object | A valid customConfig object, see Custom config reference. You can use the preset as-is with no changes. |
Custom configuration of resources per API. |
traceDirectory |
String | A valid filesystem path. See 5.23.1 File locations. | Directory used for creating headless trace files. |
frameCaptures |
Object | A valid frameCaptures object. See Frame captures reference. |
Allows setting frame captures frame numbers and modes. |
disconnectBeforeFrame |
Integer | A valid frame number. | Number of the frame to disconnect and disable tracing before. |
The customConfig object contains keys for each API. Values are objects containing Boolean keys specifying whether resources are enabled for that API. All keys are optional.
For an example of how to format this object, see Example configuration file.
gles.shaderSources disabled, the resulting config has
all resources except OpenGL ES shader sources
enabled.cl | OpenCL config object. |
gles | OpenGL ES config object. |
vulkan | Vulkan config object. |
programSourcesexplicitMemoryshaderSourcesshaderUniformsshaderBinariestextureContentsexplicitBuffersimplicitBuffersoutputBuffersshaderBinariesimplicitMemoryThe frameCaptures configuration object contains keys for each frame capture mode. All keys are optional.
The frameCaptures object keys are:
defaultoverdrawfragmentCountshaderMapallAttachmentsAll these keys are integer arrays.
For an example of how to format this object, see Example configuration file.
This topic shows an example of a headless configuration file.
{
"processes": [
{
"name": "com.example.application",
"customConfig": {
"cl": {
"programSources": false,
"explicitMemory": false
},
"gles": {
"shaderSources": false,
"shaderUniforms": false,
"shaderBinaries": false,
"textureContents": false,
"explicitBuffers": false,
"implicitBuffers": false,
"outputBuffers": false
},
"vulkan": {
"shaderBinaries": false,
"implicitMemory": false
}
}
},
{
"name": "cube",
"config": "fullTrace",
"customConfig": {
"gles": {
"outputBuffers": true
}
},
"frameCaptures": {
"default": [50],
"overdraw": [65, 81],
"allAttachments": [22],
"shaderMap": [25, 33],
"fragmentCount": [70, 73, 76, 80, 90]
},
"disconnectBeforeFrame": 50
},
{
"name": "com.sample.teapot",
"traceDirectory": "/some/path/"
}
]
}