{"repo":"simonepri/sympact","free":true,"listed":false,"github":"https://github.com/simonepri/sympact","clone":"git clone https://github.com/simonepri/sympact.git","description":"🔥 Stupid Simple CPU/MEM \"Profiler\" for your JS code.","language":"JavaScript","stars":440,"topics":["benchmark","profile","system","impact","memory","cpu","cli","nodejs","damage","pid"],"license":"MIT","category":"cli-tools","readme_excerpt":"🔥 An easy way to calculate the 'impact' of running a task in Node.JS Coded with ❤️ by Simone Primarosa . Synopsis Sympact runs a script and profiles its execution time, CPU usage, and memory usage. Sympact then returns an execution report containing the averages of the results. Do you believe that this is useful ? Has it saved you time ? Or maybe you simply like it ? If so, [show your appreciation with a Star ⭐️][start]. How it works sympact spawns a separate process and runs your script in an isolated node process and then collects statistics about the system's resource used by your script. The data are collected using [pidusage][gh:pidusage] in combination with [pidtree][gh:pidtree]. The main difference between other projects is that sympact will also \"profile\" processes spawned by your script or by any of its children. Finally a report of the samples taken is computed and returned to you. Install Usage CLI To make it more usable, a CLI is bundled with the package allowing for an aesthetically pleasing report. You can even require other files. Report object The object returned by the promise will look like this. API sympact(code, [options]) ⇒ Promise.&lt;Object&gt; Measures the impact of running a certain script on your system. Monitors the cpu and memory usage of the whole tree of processes generated by the script provided. Kind : global function Returns : Promise.&lt;Object&gt; - An object containing the results. Access : public Param Type Default Description --- --- ---","default_branch":null,"files":null,"tree":[],"storefront":"/r/simonepri","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/simonepri/sympact/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}