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

Added timepoint printing in json format #1780

Merged
merged 2 commits into from
Feb 2, 2021

Conversation

ethouris
Copy link
Collaborator

@ethouris ethouris commented Feb 1, 2021

Added printing timepoint (time when the stats was printed) for the json format.

apps/apputil.cpp Outdated Show resolved Hide resolved
apps/apputil.cpp Show resolved Hide resolved
@maxsharabayko maxsharabayko added this to the v1.4.3 milestone Feb 1, 2021
@maxsharabayko maxsharabayko added [apps] Area: Test applications related improvements Type: Enhancement Indicates new feature requests labels Feb 1, 2021
Co-authored-by: Maxim Sharabayko <maxlovic@gmail.com>
@kwdchol
Copy link

kwdchol commented Mar 10, 2021

hello my test SRT Library version: 1.4.3
statistics log is no have timestamp for in csv or json
I hope timestamp -->current time;time ->Process start time

current sample:
csv
Time,SocketID,Time,pktFlowWindow,pktCongestionWindow,pktFlightSize,msRTT,mbpsBandwidth,mbpsMaxBW,pktSent,pktSentUnique,pktSndLoss,pktSndDrop,pktRetrans,pktSndFilterExtra,byteSent,byteSentUnique,byteSndDrop,mbpsSendRate,usPktSndPeriod,pktRecv,pktRecvUnique,pktRcvLoss,pktRcvDrop,pktRcvRetrans,pktRcvBelated,pktRcvFilterExtra,pktRcvFilterSupply,pktRcvFilterLoss,byteRecv,byteRecvUnique,byteRcvLoss,byteRcvDrop,mbpsRecvRate
2300,297871039,2300,7983,8192,18,0.357,3376.12,1000,3989,3989,0,0,0,0,5425040,5425040,0,18.8658,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0
4600,297871039,4600,7969,8192,37,0.883,1463.15,1000,4007,3996,11,0,11,0,5449520,5434560,0,18.9574,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0
json
{"sid":258151875,"time":"46048","window":{"flow":"7982","congestion":"8192","flight":"17"},"link":{"rtt":"0.281","bandwidth":"3303.82","maxBandwidth":"1000"},"send":{"packets":"4022","packetsUnique":"4014","packetsLost":"8","packetsDropped":"0","packetsRetransmitted":"8","packetsFilterExtra":"0","bytes":"5469920","bytesUnique":"5459040","bytesDropped":"0","mbitRate":"19.0157","sendPeriod":"10"},"recv":{"packets":"0","packetsUnique":"0","packetsLost":"0","packetsDropped":"0","packetsRetransmitted":"0","packetsBelated":"0","packetsFilterExtra":"0","packetsFilterSupply":"0","packetsFilterLoss":"0","bytes":"0","bytesUnique":"0","bytesLost":"0","bytesDropped":"0","mbitRate":"0"}}

@maxsharabayko
Copy link
Collaborator

If you are using GCC, then v5.0 or above is needed to enable absolute timestamp, as it relies on std::put_time(..) function, not supported in earlier GCC versions.

@kwdchol
Copy link

kwdchol commented Mar 11, 2021

如果您使用的是GCC,则需要启用v5.0或更高版本,以启用绝对时间戳记,因为它依赖于std::put_time(..)功能,早期的GCC版本不支持该功能。

thank you,I update gcc version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[apps] Area: Test applications related improvements Type: Enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[srt-live-transmit] Add absolute timestamp when collecting SRT statistics
3 participants