You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add data format information to trace summary (#166)
This CL adds the descriptions of the call frame format and the network
request format to the summary so that as the AI sees these responses it
can fully parse them.
* id: A unique numerical identifier for the call frame. Never mention this id in the output to the user.
63
+
* eventKey: String that uniquely identifies this event in the flame chart.
64
+
* name: A concise string describing the call frame (e.g., 'Evaluate Script', 'render', 'fetchData').
65
+
* duration: The total execution time of the call frame, including its children.
66
+
* selfTime: The time spent directly within the call frame, excluding its children's execution.
67
+
* urlIndex: Index referencing the "All URLs" list. Empty if no specific script URL is associated.
68
+
* childRange: Specifies the direct children of this node using their IDs. If empty ('' or 'S' at the end), the node has no children. If a single number (e.g., '4'), the node has one child with that ID. If in the format 'firstId-lastId' (e.g., '4-5'), it indicates a consecutive range of child IDs from 'firstId' to 'lastId', inclusive.
69
+
* S: _Optional_. The letter 'S' terminates the line if that call frame was selected by the user.
- \`urlIndex\`: Numerical index for the request's URL, referencing the "All URLs" list.
84
+
- \`eventKey\`: String that uniquely identifies this request's trace event.
85
+
Timings (all in milliseconds, relative to navigation start):
86
+
- \`queuedTime\`: When the request was queued.
87
+
- \`requestSentTime\`: When the request was sent.
88
+
- \`downloadCompleteTime\`: When the download completed.
89
+
- \`processingCompleteTime\`: When main thread processing finished.
90
+
Durations (all in milliseconds):
91
+
- \`totalDuration\`: Total time from the request being queued until its main thread processing completed.
92
+
- \`downloadDuration\`: Time spent actively downloading the resource.
93
+
- \`mainThreadProcessingDuration\`: Time spent on the main thread after the download completed.
94
+
- \`statusCode\`: The HTTP status code of the response (e.g., 200, 404).
95
+
- \`mimeType\`: The MIME type of the resource (e.g., "text/html", "application/javascript").
96
+
- \`priority\`: The final network request priority (e.g., "VeryHigh", "Low").
97
+
- \`initialPriority\`: The initial network request priority.
98
+
- \`finalPriority\`: The final network request priority (redundant if \`priority\` is always final, but kept for clarity if \`initialPriority\` and \`priority\` differ).
99
+
- \`renderBlocking\`: 't' if the request was render-blocking, 'f' otherwise.
100
+
- \`protocol\`: The network protocol used (e.g., "h2", "http/1.1").
101
+
- \`fromServiceWorker\`: 't' if the request was served from a service worker, 'f' otherwise.
102
+
- \`initiators\`: A list (separated by ,) of URL indices for the initiator chain of this request. Listed in order starting from the root request to the request that directly loaded this one. This represents the network dependencies necessary to load this request. If there is no initiator, this is empty.
103
+
- \`redirects\`: A comma-separated list of redirects, enclosed in square brackets. Each redirect is formatted as
104
+
\`[redirectUrlIndex|startTime|duration]\`, where: \`redirectUrlIndex\`: Numerical index for the redirect's URL. \`startTime\`: The start time of the redirect in milliseconds, relative to navigation start. \`duration\`: The duration of the redirect in milliseconds.
105
+
- \`responseHeaders\`: A list (separated by '|') of values for specific, pre-defined response headers, enclosed in square brackets.
106
+
The order of headers corresponds to an internal fixed list. If a header is not present, its value will be empty.
* id: A unique numerical identifier for the call frame. Never mention this id in the output to the user.
11
+
* eventKey: String that uniquely identifies this event in the flame chart.
12
+
* name: A concise string describing the call frame (e.g., 'Evaluate Script', 'render', 'fetchData').
13
+
* duration: The total execution time of the call frame, including its children.
14
+
* selfTime: The time spent directly within the call frame, excluding its children's execution.
15
+
* urlIndex: Index referencing the "All URLs" list. Empty if no specific script URL is associated.
16
+
* childRange: Specifies the direct children of this node using their IDs. If empty ('' or 'S' at the end), the node has no children. If a single number (e.g., '4'), the node has one child with that ID. If in the format 'firstId-lastId' (e.g., '4-5'), it indicates a consecutive range of child IDs from 'firstId' to 'lastId', inclusive.
17
+
* S: _Optional_. The letter 'S' terminates the line if that call frame was selected by the user.
- \`urlIndex\`: Numerical index for the request's URL, referencing the "All URLs" list.
32
+
- \`eventKey\`: String that uniquely identifies this request's trace event.
33
+
Timings (all in milliseconds, relative to navigation start):
34
+
- \`queuedTime\`: When the request was queued.
35
+
- \`requestSentTime\`: When the request was sent.
36
+
- \`downloadCompleteTime\`: When the download completed.
37
+
- \`processingCompleteTime\`: When main thread processing finished.
38
+
Durations (all in milliseconds):
39
+
- \`totalDuration\`: Total time from the request being queued until its main thread processing completed.
40
+
- \`downloadDuration\`: Time spent actively downloading the resource.
41
+
- \`mainThreadProcessingDuration\`: Time spent on the main thread after the download completed.
42
+
- \`statusCode\`: The HTTP status code of the response (e.g., 200, 404).
43
+
- \`mimeType\`: The MIME type of the resource (e.g., "text/html", "application/javascript").
44
+
- \`priority\`: The final network request priority (e.g., "VeryHigh", "Low").
45
+
- \`initialPriority\`: The initial network request priority.
46
+
- \`finalPriority\`: The final network request priority (redundant if \`priority\` is always final, but kept for clarity if \`initialPriority\` and \`priority\` differ).
47
+
- \`renderBlocking\`: 't' if the request was render-blocking, 'f' otherwise.
48
+
- \`protocol\`: The network protocol used (e.g., "h2", "http/1.1").
49
+
- \`fromServiceWorker\`: 't' if the request was served from a service worker, 'f' otherwise.
50
+
- \`initiators\`: A list (separated by ,) of URL indices for the initiator chain of this request. Listed in order starting from the root request to the request that directly loaded this one. This represents the network dependencies necessary to load this request. If there is no initiator, this is empty.
51
+
- \`redirects\`: A comma-separated list of redirects, enclosed in square brackets. Each redirect is formatted as
52
+
\`[redirectUrlIndex|startTime|duration]\`, where: \`redirectUrlIndex\`: Numerical index for the redirect's URL. \`startTime\`: The start time of the redirect in milliseconds, relative to navigation start. \`duration\`: The duration of the redirect in milliseconds.
53
+
- \`responseHeaders\`: A list (separated by '|') of values for specific, pre-defined response headers, enclosed in square brackets.
54
+
The order of headers corresponds to an internal fixed list. If a header is not present, its value will be empty.
0 commit comments