GithubHelp home page GithubHelp logo

clairvoyance's Introduction

clairvoyance

process resource monitoring tool

A process resource monitoring tool that can collect the memory, cpu and other resource usage of the specified process and draw a graph.

一个进程资源监视工具, 可以收集指定进程的内存, cpu等等资源的使用并且绘制成图表.

platform

linux/windows/macos

depends on heim#platform-support

build

cargo +nightly build --release

usage

record

help

clairvoyance record help

example

Record the specified process at a frequency of 600ms, and output the result to the result directory:

clairvoyance record -f 600ms -o result <pid> [<pid>]...

ctrl+c stops you should notice a file result/<pid>-<time>.clairvoyance.

render

help

clairvoyance render help

example

Render the specified intermediate file into an icon, the targets include memory(-m), cpu(-c), io(-i), and output the image generated by rendering to the result/out directory.

clairvoyance render -o result/out -m -c -i result/<pid>-<time>.clairvoyance

custom rendering

Use the -j option to convert the intermediate file to json format, which you can then read and render yourself.

clairvoyance render -o result/out -j result/<pid>-<time>.clairvoyance

example: result.json

the specific format can refer to: data.rs

example

memory.svg cpu_time.svg cpu_usage.svg io.svg


This project relies on heim to collect process information on specific platforms.

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.