Coder Social home page Coder Social logo

pidstat bug with two output tables about jc HOT 7 CLOSED

vsoch avatar vsoch commented on June 2, 2024
pidstat bug with two output tables

from jc.

Comments (7)

kellyjonbrazil avatar kellyjonbrazil commented on June 2, 2024 1

Couple of things:

  1. You'll probably want to use pidstat -hH if you can so jc can properly parse the timestamp field
  2. I didn't realize that multiple table-types could be output (as when using -T) so jc currently just looks up the columns of the first table it finds and applies it to the rest of the data. I'll need to rewrite the parser to check the table columns each time there is a header row.

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on June 2, 2024 1

Added in v1.23.5

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on June 2, 2024

Thanks for reporting this - I'll take a closer look at this in the next few days.

from jc.

vsoch avatar vsoch commented on June 2, 2024

Thanks @kellyjonbrazil ! For a workaround, I'm doing two separate calls, one for CHILD and for one TASK, and then parsing them separately, but it would be good to get them both at the same time in the list!

from jc.

kellyjonbrazil avatar kellyjonbrazil commented on June 2, 2024

I have a fix in the dev branch it would be great if you could test. You can copy the new parser files to your plugin directory:

https://github.com/kellyjonbrazil/jc/blob/dev/jc/parsers/pidstat.py
https://github.com/kellyjonbrazil/jc/blob/dev/jc/parsers/pidstat_s.py

  • Linux/unix: $HOME/.local/share/jc/jcparsers
  • macOS: $HOME/Library/Application Support/jc/jcparsers
  • Windows: $LOCALAPPDATA\jc\jc\jcparsers

Could you let me know if that works for you? I'll get this in the next release. Thanks!

from jc.

vsoch avatar vsoch commented on June 2, 2024

Thank you! I should be able to make some time this week to test this out in the operator where it is working - just added to my TODO and will send you an update when I do.

from jc.

vsoch avatar vsoch commented on June 2, 2024

hey! Apologies for the wait - I just tested it out, and it looks great!

image

Please release away - I'll update my tools with the new release when you do. Thank you!

from jc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.