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
- Tracking metadata (start time, duration, sample ratio, etc.)
56
+
- Performance statistics (CPU time, network bytes)
57
+
- Lists of top K hotkeys sorted by the metrics specified in `HOTKEYS START`
62
58
63
-
Minimum CPU time percentage threshold. Only hotkeys with CPU time percentage greater than or equal to this value will be included in the `by-cpu-time` results.
Minimum network bytes percentage threshold. Only hotkeys with network bytes percentage greater than or equal to this value will be included in the `by-net-bytes` results.
@@ -77,74 +105,51 @@ Minimum network bytes percentage threshold. Only hotkeys with network bytes perc
77
105
tab2="RESP3" >}}
78
106
79
107
One of the following:
80
-
-[Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}}) with the following items when tracking data is available:
81
-
-`collection-start-time`: Unix timestamp (integer) when tracking started.
82
-
-`collection-duration`: Duration in seconds (integer) of the tracking period.
83
-
-`by-cpu-time`: Array of key-percentage pairs (bulk strings) sorted by CPU time usage.
84
-
-`by-net-bytes`: Array of key-percentage pairs (bulk strings) sorted by network bytes usage.
85
108
86
-
-[Null bulk string reply]({{< relref "/develop/reference/protocol-spec#bulk-strings" >}}) when no tracking has been started or no data is available.
87
-
88
-
Example with tracking data:
89
-
```
90
-
*8
91
-
$21
92
-
collection-start-time
93
-
:1768232225
94
-
$19
95
-
collection-duration
96
-
:0
97
-
$11
98
-
by-cpu-time
99
-
*2
100
-
$6
101
-
keys_1
102
-
$6
103
-
100.00
104
-
$12
105
-
by-net-bytes
106
-
*2
107
-
$6
108
-
keys_1
109
-
$6
110
-
100.00
111
-
```
109
+
**[Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}})** when tracking data is available, containing pairs of field names and values:
110
+
111
+
-`tracking-active` (integer): 1 if tracking is active, 0 if stopped
112
+
-`sample-ratio` (integer): The sampling ratio used during tracking
113
+
-`selected-slots` (array): Array of slot numbers being tracked (empty if all slots)
114
+
-`sampled-command-selected-slots-ms` (integer): Time in milliseconds for sampled commands on selected slots (conditional)
115
+
-`all-commands-selected-slots-ms` (integer): Time in milliseconds for all commands on selected slots (conditional)
116
+
-`all-commands-all-slots-ms` (integer): Time in milliseconds for all commands on all slots
117
+
-`net-bytes-sampled-commands-selected-slots` (integer): Network bytes for sampled commands on selected slots (conditional)
118
+
-`net-bytes-all-commands-selected-slots` (integer): Network bytes for all commands on selected slots (conditional)
119
+
-`net-bytes-all-commands-all-slots` (integer): Network bytes for all commands on all slots
120
+
-`collection-start-time-unix-ms` (integer): Unix timestamp in milliseconds when tracking started
121
+
-`collection-duration-ms` (integer): Duration of tracking in milliseconds
122
+
-`used-cpu-sys-ms` (integer): System CPU time used in milliseconds
123
+
-`used-cpu-user-ms` (integer): User CPU time used in milliseconds
124
+
-`total-net-bytes` (integer): Total network bytes processed
125
+
-`by-cpu-time` (array): Array of key-time pairs sorted by CPU time (if CPU tracking enabled)
126
+
-`by-net-bytes` (array): Array of key-bytes pairs sorted by network bytes (if NET tracking enabled)
127
+
128
+
**[Null reply]({{< relref "/develop/reference/protocol-spec#bulk-strings" >}})** when no tracking has been started or data has been reset.
112
129
113
130
-tab-sep-
114
131
115
132
One of the following:
116
-
-[Map reply]({{< relref "/develop/reference/protocol-spec#maps" >}}) with the following items when tracking data is available:
117
133
118
-
-`collection-start-time`: Unix timestamp (integer) when tracking started.
119
-
-`collection-duration`: Duration in seconds (integer) of the tracking period.
120
-
-`by-cpu-time`: Array of key-percentage (bulk string) pairs sorted by CPU time usage.
121
-
-`by-net-bytes`: Array of key-percentage (bulk string) pairs sorted by network bytes usage.
122
-
-[Null reply]({{< relref "/develop/reference/protocol-spec#nulls" >}}) when no tracking has been started or no data is available.
123
-
124
-
Example with tracking data:
125
-
```
126
-
%4
127
-
$21
128
-
collection-start-time
129
-
:1768232225
130
-
$19
131
-
collection-duration
132
-
:0
133
-
$11
134
-
by-cpu-time
135
-
*2
136
-
$6
137
-
keys_1
138
-
$6
139
-
100.00
140
-
$12
141
-
by-net-bytes
142
-
*2
143
-
$6
144
-
keys_1
145
-
$6
146
-
100.00
147
-
```
134
+
**[Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}})** when tracking data is available, containing pairs of field names and values:
135
+
136
+
-`tracking-active` (integer): 1 if tracking is active, 0 if stopped
137
+
-`sample-ratio` (integer): The sampling ratio used during tracking
138
+
-`selected-slots` (array): Array of slot numbers being tracked (empty if all slots)
139
+
-`sampled-command-selected-slots-ms` (integer): Time in milliseconds for sampled commands on selected slots (conditional)
140
+
-`all-commands-selected-slots-ms` (integer): Time in milliseconds for all commands on selected slots (conditional)
141
+
-`all-commands-all-slots-ms` (integer): Time in milliseconds for all commands on all slots
142
+
-`net-bytes-sampled-commands-selected-slots` (integer): Network bytes for sampled commands on selected slots (conditional)
143
+
-`net-bytes-all-commands-selected-slots` (integer): Network bytes for all commands on selected slots (conditional)
144
+
-`net-bytes-all-commands-all-slots` (integer): Network bytes for all commands on all slots
145
+
-`collection-start-time-unix-ms` (integer): Unix timestamp in milliseconds when tracking started
146
+
-`collection-duration-ms` (integer): Duration of tracking in milliseconds
147
+
-`used-cpu-sys-ms` (integer): System CPU time used in milliseconds
148
+
-`used-cpu-user-ms` (integer): User CPU time used in milliseconds
149
+
-`total-net-bytes` (integer): Total network bytes processed
150
+
-`by-cpu-time` (array): Array of key-time pairs sorted by CPU time (if CPU tracking enabled)
151
+
-`by-net-bytes` (array): Array of key-bytes pairs sorted by network bytes (if NET tracking enabled)
152
+
153
+
**[Null reply]({{< relref "/develop/reference/protocol-spec#bulk-strings" >}})** when no tracking has been started or data has been reset.
summary: Release the resources used for hotkey tracking.
30
+
syntax_fmt: HOTKEYS RESET
31
+
title: HOTKEYS RESET
32
+
---
33
+
Release the resources used for hotkey tracking.
34
+
35
+
This command can only be executed when hotkey tracking is stopped. It will return an error if tracking is currently active. Use [`HOTKEYS STOP`]({{< relref "/commands/hotkeys-stop" >}}) first to stop tracking, then use `HOTKEYS RESET` to free the allocated resources.
0 commit comments