Special Segmentation Format: gpu

The gpu value is made up of 2 granularity levels - vendor and model. These granularity levels are explained in Special Filter: gpu. A particular level needs to be selected, and this is to be included in the property name, namely gpu.vendor or gpu.model. Different granularity levels can be requested for different segmentation levels. Therefore, it is possible to generate a 2-level hierarchical tree in which level 1 would show the vendor, and level 2 would show the model number.

The following example shows the levels object requesting 2 granularity levels as described above:

{

    "level1": {

        "property": "gpu.vendor",

        "segments": [

            {

                "type": "regex",

                "value": ".*",

                "split": true

            }

        ]

    },

    "level2": {

        "property": "gpu.model",

        "segments": [

            {

                "type": "regex",

                "value": ".*",

                "split": true

            }

        ]

    }

}

In the above example, no filtering is being done, and instead, a regular expression to include everything is set as the value. This will result in all the GPU vendors and models to be included in the hierarchy.