@@ -94,6 +94,13 @@ enum Commands {
9494 parse( try_from_str)
9595 ) ]
9696 pid : i32 ,
97+ #[ clap(
98+ name = "rbspy_blocking" ,
99+ long = "rbspy-blocking" ,
100+ value_name = "RBSPY_BLOCKING" ,
101+ help = "enable blocking mode for rbspy"
102+ ) ]
103+ rbspy_blocking : bool ,
97104 #[ clap(
98105 name = "pyspy_blocking" ,
99106 long = "pyspy-blocking" ,
@@ -102,12 +109,26 @@ enum Commands {
102109 ) ]
103110 pyspy_blocking : bool ,
104111 #[ clap(
105- name = "rbspy_blocking " ,
106- long = "rbspy-blocking " ,
107- value_name = "RBSPY_BLOCKING " ,
108- help = "enable blocking mode for rbspy "
112+ name = "pyspy_idle " ,
113+ long = "pyspy-idle " ,
114+ value_name = "PYSPY_IDLE " ,
115+ help = "include idle threads for pyspy "
109116 ) ]
110- rbspy_blocking : bool ,
117+ pyspy_idle : bool ,
118+ #[ clap(
119+ name = "pyspy_gil" ,
120+ long = "pyspy-gil" ,
121+ value_name = "PYSPY_GIL" ,
122+ help = "enable GIL mode for pyspy"
123+ ) ]
124+ pyspy_gil : bool ,
125+ #[ clap(
126+ name = "pyspy_native" ,
127+ long = "pyspy-native" ,
128+ value_name = "PYSPY_NATIVE" ,
129+ help = "enable native extensions profiling for pyspy"
130+ ) ]
131+ pyspy_native : bool ,
111132 #[ clap(
112133 name = "sample_rate" ,
113134 long = "sample-rate" ,
@@ -211,6 +232,13 @@ enum Commands {
211232 //help = "disable permissions drop when ran under root. use this one if you want to run your command as root"
212233 //)]
213234 //no_root_drop: bool,
235+ #[ clap(
236+ name = "rbspy_blocking" ,
237+ long = "rbspy-blocking" ,
238+ value_name = "RBSPY_BLOCKING" ,
239+ help = "enable blocking mode for rbspy"
240+ ) ]
241+ rbspy_blocking : bool ,
214242 #[ clap(
215243 name = "pyspy_blocking" ,
216244 long = "pyspy-blocking" ,
@@ -219,12 +247,26 @@ enum Commands {
219247 ) ]
220248 pyspy_blocking : bool ,
221249 #[ clap(
222- name = "rbspy_blocking " ,
223- long = "rbspy-blocking " ,
224- value_name = "RBSPY_BLOCKING " ,
225- help = "enable blocking mode for rbspy "
250+ name = "pyspy_idle " ,
251+ long = "pyspy-idle " ,
252+ value_name = "PYSPY_IDLE " ,
253+ help = "include idle threads for pyspy "
226254 ) ]
227- rbspy_blocking : bool ,
255+ pyspy_idle : bool ,
256+ #[ clap(
257+ name = "pyspy_gil" ,
258+ long = "pyspy-gil" ,
259+ value_name = "PYSPY_GIL" ,
260+ help = "enable GIL mode for pyspy"
261+ ) ]
262+ pyspy_gil : bool ,
263+ #[ clap(
264+ name = "pyspy_native" ,
265+ long = "pyspy-native" ,
266+ value_name = "PYSPY_NATIVE" ,
267+ help = "enable native extensions profiling for pyspy"
268+ ) ]
269+ pyspy_native : bool ,
228270 #[ clap(
229271 name = "sample_rate" ,
230272 long = "sample-rate" ,
0 commit comments