A command line profiling tool with stopwatch, cpu and memory usage

Overview

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

The easiest way to give timeui a try is clone the repo and from the command line run sudo run-demo.sh.

Installation

In the repo root folder run install.sh which builds timeui and copies it over into /usr/local/bin.

Contributing

This tool was put in just few hours time, here's the live twitter thread 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.

You might also like...
Command Line Tool for interacting with MachO binaries on OSX/iOS

inject inject is a tool which interfaces with MachO binaries in order to insert load commands. Below is its help. ➜ ./inject -h OVERVIEW: inject v1.0.

CookCLI is provided as a command-line tool to make Cook recipe management easier

CookCLI is provided as a command-line tool to make Cook recipe management easier, and enable automation and scripting workflows for the CookLa

A Mac command-line tool that automatically downloads macOS Installers / Firmwares.
A Mac command-line tool that automatically downloads macOS Installers / Firmwares.

MIST - macOS Installer Super Tool A Mac command-line tool that automatically downloads macOS Installers / Firmwares: Features List all available macOS

macOS command line tool to return the available disk space on APFS volumes

diskspace Returns available disk space With the various APFS features the value for free disk space returned from tools such as du or df will not be a

A command-line tool to generate a JSON-list of all used SPM-dependencies of an Xcode-project.

SwiftPackageList A command-line tool to generate a JSON-list of all used SPM-dependencies of an Xcode-project. This includes all the Package.resolved

A command-line tool to sort Xcode's `.xcodeproj` file.

XcodeProjSorter A command-line tool to sort Xcode's .xcodeproj file. It sorts following sessions: PBXGroup PBXResourcesBuildPhase PBXSourcesBuildPhase

Josephus - A command line tool to solve Josephus problem in Swift
Josephus - A command line tool to solve Josephus problem in Swift

josephus A command line tool to solve Josephus problem in Swift

Mac App Store: Embedding a Command Line tool using paths as arguments

Mac App Store: Embedding a Command Line tool using paths as arguments Code snippets to embed a Command Line tool using paths as arguments on the Mac A

Compose beautiful command line interfaces in Swift
Compose beautiful command line interfaces in Swift

Commander is a small Swift framework allowing you to craft beautiful command line interfaces in a composable way. Usage Simple Hello World i

Comments
  • Add products so it can be added to SPI

    Add products so it can be added to SPI

    I wanted to add it to SPI but we check for products in the manifest:

    ERROR: package has no products: https://github.com/icanzilb/timeui.git
    

    If you fancy having it in the index, this should fix it :)

    opened by finestructure 3
  • Ding!

    Ding!

    This PR adds two a new feature:

    • --ding command line argument
    • a UI sound toggle button

    If either of these is enabled the app plays a system sound when the watched process completes.

    opened by icanzilb 0
  • Seems that

    Seems that "timeui" crash on start on macOS Ventura 13.1, built with Xcode 14.2

    macOS: Ventura 13.1 Xcode: 14.2 timeui: 0.0.3

    $ swift run timeui
    Building for debugging...
    Build complete! (0.17s)
    Fatal error: The operation couldn’t be completed. (Swift.String error 1.)
    

    Same error appears when install using install.sh script (ignoring the fact that it's broken as well, it needs 'sudo' to copy anything to /usr/local/bin - maybe recent macOS hardened this location?)

    feature 
    opened by vashpan 6
  • show cli help if no parameters provided

    show cli help if no parameters provided

    Running timeui with no parameters spits out a generic error (printing the localizedDescription of the error I guess), we need a better description.

    marin@Marins-MacBook timeui % timeui
    Fatal error: The operation couldn’t be completed. (Swift.String error 1.)
    
    help wanted good first issue 
    opened by icanzilb 1
Releases(0.0.3)
Owner
Marin Todorov
Experienced on  platforms. Author of "Modern Concurrency in Swift", "Combine: Asynchronous Programming with Swift", and others.
Marin Todorov
ipatool is a command line tool that allows you to search for iOS apps on the App Store and download a copy of the app package, known as an ipa file.

ipatool is a command line tool that allows you to search for iOS apps on the App Store and download a copy of the app package, known as an ipa file.

Majd Alfhaily 3k Dec 30, 2022
iOS command-line tool that allows searching and downloading ipa files from the iOS App Store

ipatool for iOS This is a port of Majd Alfhaily's ipatool adapted to run on iOS Build / Installation To build this, make sure you have AppSync install

dan 21 Sep 13, 2022
The best command-line tool to install and switch between multiple versions of Xcode.

The best command-line tool to install and switch between multiple versions of Xcode.

Robots and Pencils 2.3k Jan 9, 2023
A powerful command line tool for performing stoichiometry calculations on checmicals and chemical equations.

Stoichiometry Stoichiometry is a powerful command line tool for preforming stoichiometry chemicals and chemical equations. Its subcommands are listed

null 3 Jul 15, 2022
A command line tool to easily install and browse Xcode templates

?? XTrail A command line tool to easily install and browse Xcode templates. Usage The general invocation syntax for xtrail is as follows: xtrail <subc

Shogo Sakaue 3 Dec 16, 2021
A command line tool to parse pricing from a pdf and generate an updated csv file for House Call Pro

A command line tool to parse pricing from a pdf and generate an updated csv file for House Call Pro

hhe-dev 10 Feb 17, 2022
RsyncOSX and RsyncUI are GUI´s on the Apple macOS plattform for the command line tool rsync

Hi there ?? RsyncOSX and RsyncUI are GUI´s on the Apple macOS plattform for the command line tool rsync. It is rsync which executes the synchronize ta

Thomas Evensen 1.1k Dec 23, 2022
A command line tool that calls your Xcode Test Plan and creates screenshots of your app automatically.

ShotPlan (WIP) A command line tool that calls your Xcode Test Plan and creates screenshots of your app automatically. ShotPlan will also take care of

Devran Cosmo Uenal 6 Jul 21, 2022
A Mac command-line tool that generates kick-ass Jamf Pro reports.

KMART - Kick-Ass Mac Admin Reporting Tool A command-line utility generating kick-ass Jamf Pro reports: Features Reporting on the following Jamf Pro ob

Nindi Gill 86 Dec 15, 2022
A nifty command-line tool to customize macOS icons

iconset A nifty command line tool to manage macOS icons iconset is a new command line tool for macOS that allows you to change icons for macOS apps (e

aarnav tale 32 Nov 17, 2022