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

cmd/stats: add timestamp info and duration option #5528

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

anysql
Copy link
Contributor

@anysql anysql commented Jan 8, 2025

Add timestamp info for each row

@anysql anysql changed the title Add timestamp info cmd/stats: add timestamp info and duration option Jan 8, 2025
@anysql
Copy link
Contributor Author

anysql commented Jan 17, 2025

sample output:

image

@anysql
Copy link
Contributor Author

anysql commented Jan 17, 2025

Samle output:
image

@davies davies requested a review from SandyXSD January 17, 2025 06:29
@SandyXSD
Copy link
Contributor

The dstat provides a more elegant example to control and display the timestamp, like:

$ dstat -tcdn
----system---- --total-cpu-usage-- -dsk/total- -net/total-
     time     |usr sys idl wai stl| read  writ| recv  send
17-01 14:55:19|  1   1  98   0   0|  87k  203k|   0     0
17-01 14:55:20|  0   0  99   0   0|   0   136k| 216B  792B
17-01 14:55:21|  1   0  99   0   0|   0   356k| 618B 1477B
17-01 14:55:22|  0   0 100   0   0|   0     0 | 132B  420B
17-01 14:55:23|  0   1  99   0   0|   0  4096B| 216B  488B

@anysql
Copy link
Contributor Author

anysql commented Jan 17, 2025

Format optimization:

image

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

Successfully merging this pull request may close these issues.

2 participants