Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icanzilb/timeui
Profile apps from the command line — duration, cpu & memory usage.
https://github.com/icanzilb/timeui
instrumentation swift
Last synced: 3 months ago
JSON representation
Profile apps from the command line — duration, cpu & memory usage.
- Host: GitHub
- URL: https://github.com/icanzilb/timeui
- Owner: icanzilb
- License: mit
- Created: 2022-03-17T14:32:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-03T07:43:04.000Z (over 2 years ago)
- Last Synced: 2024-03-14T20:37:59.261Z (11 months ago)
- Topics: instrumentation, swift
- Language: Swift
- Homepage:
- Size: 5.63 MB
- Stars: 108
- Watchers: 4
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# timeui
A command line profiling tool with stopwatch, cpu and memory usage.
## Usage
`./timeui path/to/app-to-profile` runs the stopwatch and signpost regions stopwatches.
If you run `timeui` with root privileges it'll display also CPU and memory usage.
![A visual demo of timeui](https://raw.githubusercontent.com/icanzilb/timeui/main/etc/demo.gif)
The easiest way to give `timeui` a try is clone the repo and from the command line run `sudo run-demo.sh`.
## Installation
1. `git clone https://github.com/icanzilb/timeui`
1. `cd timeui`
1. `./install.sh`Once the tool is installed (in /usr/local/bin) you can start it from any location on your mac.
## Features
If you run `timeui` with sudo the app will display data about CPU and RAM usage.
Use `--ding` command line parameter or toggle the speaker button in the UI to play sound when the watched process completes.
## Contributing
This tool was put in just few hours time, here's the live [twitter thread](https://twitter.com/icanzilb/status/1494577864028663810) with progress updates.
If you'd like to improve and keep improving it, I have a list with possible steps to build it into a real, usable tool: https://github.com/icanzilb/timeui/issues
## License
Copyright (c) Marin Todorov 2022 This code is provided under the MIT License.