Ok I understood. Now I have a following question.
I did a grep in the build directory
grep -r 'work_time_total' .
It seems a lot of task is already been done ! :)
[PerfCounters]
on = True
export = True
#clock = thread
clock = monotonic
Now I run my application , for example wifi_rx.py
Where do I see the timings ?
I opened the ieee802_11_swig.py, and I see def
pc_work_time_total(self) is there for all the blocks, but how
to use them :-/
Can you give a use case, for example :
In line 1953 of ieee802_11_swig.py, we have
class frame_equalizer_sptr(object):
and inside this calss we have the function :
def pc_work_time_total(self):
"""pc_work_time_total(frame_equalizer_sptr self)
-> float"""
return
_ieee802_11_swig.frame_equalizer_sptr_pc_work_time_total(self)
Now what should I do to see total time consumed by
frame_equalizer and where do I expect the output.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./swig/ieee802_11_swigPYTHON_wrap.cxx:
{ (char *)"mac_sptr_pc_work_time_total",
_wrap_mac_sptr_pc_work_time_total, METH_VARARGS, (char
*)"mac_sptr_pc_work_time_total(mac_sptr self) -> float"},
./swig/ieee802_11_swigPYTHON_wrap.cxx:
{ (char *)"mapper_sptr_pc_work_time_total",
_wrap_mapper_sptr_pc_work_time_total, METH_VARARGS, (char
*)"mapper_sptr_pc_work_time_total(mapper_sptr self) ->
float"},
./swig/ieee802_11_swigPYTHON_wrap.cxx:
{ (char *)"moving_average_cc_sptr_pc_work_time_total",
_wrap_moving_average_cc_sptr_pc_work_time_total,
METH_VARARGS, (char
*)"moving_average_cc_sptr_pc_work_time_total(moving_average_cc_sptr
self) -> float"},
./swig/ieee802_11_swigPYTHON_wrap.cxx:
{ (char *)"moving_average_ff_sptr_pc_work_time_total",
_wrap_moving_average_ff_sptr_pc_work_time_total,
METH_VARARGS, (char
*)"moving_average_ff_sptr_pc_work_time_total(moving_average_ff_sptr
self) -> float"},
./swig/ieee802_11_swigPYTHON_wrap.cxx:
{ (char *)"parse_mac_sptr_pc_work_time_total",
_wrap_parse_mac_sptr_pc_work_time_total, METH_VARARGS, (char
*)"parse_mac_sptr_pc_work_time_total(parse_mac_sptr self)
-> float"},
./swig/ieee802_11_swigPYTHON_wrap.cxx:
{ (char *)"sync_long_sptr_pc_work_time_total",
_wrap_sync_long_sptr_pc_work_time_total, METH_VARARGS, (char
*)"sync_long_sptr_pc_work_time_total(sync_long_sptr self)
-> float"},
./swig/ieee802_11_swigPYTHON_wrap.cxx:
{ (char *)"sync_short_sptr_pc_work_time_total",
_wrap_sync_short_sptr_pc_work_time_total, METH_VARARGS,
(char *)"sync_short_sptr_pc_work_time_total(sync_short_sptr
self) -> float"},