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
So, in cases where the work function uses either WORK_CALLED_PRODUCE, or WORK_DONE, the perf counter counts that as -2 (resp -1) produced items.
System Information
OS: Linux Mint 21.3
GR Installation Method: Conda
GNU Radio Version
3.10 (maint-3.10)
Specific Version
3.10.9.2
Steps to Reproduce the Problem
Make any c++ block, (sync, or not) (It seems gr.WORK_CALLED_PRODUCE is not accepted as return value in Python...)
And have the return value to WORK_CALLED_PRODUCE, setting explicitly produce() and consume() with the right values.
And insert it in whatever flowgraph.
Running gr-ctrlport-monitor, you can see nproduced, avg_nproduced, and var_nproduced at -2 for that block.
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
What happened?
As mentioned in #7213, the perf counter stat for produced items only uses the work function return value.
And it uses it directly, as an int:
gnuradio/gnuradio-runtime/lib/block_executor.cc
Lines 622 to 627 in 3349d48
So, in cases where the work function uses either WORK_CALLED_PRODUCE, or WORK_DONE, the perf counter counts that as -2 (resp -1) produced items.
System Information
OS: Linux Mint 21.3
GR Installation Method: Conda
GNU Radio Version
3.10 (maint-3.10)
Specific Version
3.10.9.2
Steps to Reproduce the Problem
Make any c++ block, (sync, or not) (It seems gr.WORK_CALLED_PRODUCE is not accepted as return value in Python...)
And have the return value to WORK_CALLED_PRODUCE, setting explicitly produce() and consume() with the right values.
And insert it in whatever flowgraph.
Running gr-ctrlport-monitor, you can see nproduced, avg_nproduced, and var_nproduced at -2 for that block.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: