manticoresoftware / manticoresoftware/clt

Measure peak mem and CPU time

Open
#40 0 comments 0 reactions 1 assignee View on GitHub

@donhardman is already working on this.

Since Jul 24, 2024.

enhancement est::size_M
Dominant language
Svelte
Stars
8
Forks
3
Avg merge
2d 10h
Merged PRs (30d)
2

Description

It looks like it's possible and might be a good idea to add measurement of 'peak memory' and 'CPU time' usage after each command we run, similar to how we track 'duration'.

To make this happen, we could try tracking the PID of the bash process we run and then use PTY to send commands directly.

It's worth exploring the best approach and testing some ideas to implement this directly within the 'rec' tool's source code.

Once we're done with the measurements, we should think about how we can test it too.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.