Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugStats.py: No module named 'pynorm.extra.pipeparser' #60

Open
honglei opened this issue Jun 26, 2022 · 2 comments
Open

debugStats.py: No module named 'pynorm.extra.pipeparser' #60

honglei opened this issue Jun 26, 2022 · 2 comments

Comments

@honglei
Copy link
Contributor

honglei commented Jun 26, 2022

In examples\python\debugStats.py

from pynorm.extra.pipeparser import PipeParser 
@bebopagogo
Copy link
Collaborator

The "debugstats.py" is an incomplete file that is not functional. I will add comments to that effect. It was supposed to provide an example of how to process the NORM debug output which can be (as a sort of "hack" approach) optionally redirected to a local "ProtoPipe" (Unix domain socket on Unix systems and named pipe on Windows) but it looks like the code it references was not ever added to the source code repository.

I plan to provide NORM API calls that can access the statistics that are output in the debug output since parsing the text debug log output is not a good practice.

@honglei
Copy link
Contributor Author

honglei commented Jul 5, 2022

function NormGetTxRate is missing in pynorm/session.py, users need a way to find out the status of sender. When sending files, NORM_TX_OBJECT_PURGED is never emitted, is it correct?

Proto Info: ProtoDebug>SetDebugLevel: debug level changed from 1 to 12
Sending file out.txt
Proto Debug: NormSession::SenderQueueFlush() node>3232367303, flush queued (flush_count:1)...
Proto Debug: NormSession::SenderQueueFlush() starting flush timeout: 0.532600 sec ....
TX_OBJECT_SENT
TX_QUEUE_EMPTY
Proto Debug: NormSession::OnFlushTimeout() deactivating flush_timer ....
Proto Debug: NormSession::SenderQueueFlush() node>3232367303, flush queued (flush_count:2)...
Proto Debug: NormSession::SenderQueueFlush() starting flush timeout: 0.532600 sec ....
Proto Debug: NormSession::SenderHandleAckMessage() node>3232367303 sender received ACK from node>3232243457 rtt>0.001276
Proto Debug: NormSession::SenderHandleCCFeedback() cc feedback recvd at time 1657007064.0.523851  ccRate:  153.516 ccRtt:0.001276 ccLoss:0.000005 ccFlags:20
Proto Debug: NormSession::OnProbeTimeout() node>3232367303 decreased to new grtt to: 0.246600 sec
GRTT_UPDATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants