Skip to content

Feature request: add a CLI option to parse & print the contents of .blog file #42

@kha84

Description

@kha84

Hello there!

ttop is an amazing tool that covers many of my monitoring use cases, but I recently encountered a new challenge that isn't easily solved.

I have several processes that I need to monitor over extended periods to analyze their resource consumption—particularly peak usage. While I could inspect each process individually via the TUI, this approach would be prohibitively time-consuming.

I considered leveraging the data ttop already collects in its .blog files, which contain all the necessary information. However, since these files are binary, I'd need to implement a parser based on the code here - https://github.com/inv2004/ttop/blob/main/src/ttop/blog.nim

Then it occurred to me: this functionality might be a natural fit for ttop itself!

I’m not a Nim expert (not even an amateur, hehe), but with LLM assistance I could likely contribute something. My idea is a new command-line option for ttop that accepts a .blog file, parses its contents, and prints human-readable output. This would allow users to pipe the results into tools like sed, awk, or grep for custom processing.

What are your thoughts? Would you accept a pull request for this feature? Or would you prefer to implement it yourself? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions