catchpoint / WebPageTest.agent

Cross-platform WebPageTest agent
Other
213 stars 138 forks source link

Add reporting of the uncompressed size in the chunk timings #561

Closed pmeenan closed 2 years ago

pmeenan commented 2 years ago

This adds a "filtered" size entry to the chunk timings that carries the decompressed size of resources that are content-encoded (gzip, brotli).

    "chunks": [
        {
            "ts": 444,
            "bytes": 1387,
            "filtered": 2985
        },
        {
            "ts": 446,
            "bytes": 1396,
            "filtered": 3677
        },
        {
            "ts": 466,
            "bytes": 1396,
            "filtered": 3888
        },

This will make it possible to map individual chunks of HTML back to when they were flushed.

Some possible uses come to mind: