l0la

package module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

l0la is a simple cli utility that combines the output of lsof, ps and netstat to continuously monitor cpu, threads, files, network connections of your process for debugging purposes.

Circleci Builds Github Issues Github Activity
Codeclimate Maintainability Codeclimate Test Coverage Go Version License Version

What's New

v0.1.3

  • bumped to go 1.20

Up and running

Homebrew

brew tap simonmittag/cli &&
  brew install l0la &&
  l0la 

Usage

λ l0la -h
<l0la> v0.1.3
Usage: l0la [-v] [-h] [PID]
  -h    print help
  -v    print version

Samples

Monitor a process by pid

l0la $pid

Monitor a process by name

pgrep j8a | xargs l0la

Contributions

The l0la team welcomes all contributors. Everyone interacting with the project's codebase, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct

Documentation

Index

Constants

View Source
const ShellToUse = "bash"
View Source
const Version = "v0.1.4"

Variables

This section is empty.

Functions

func Conngrep

func Conngrep(pid int) int

func Cpugrep

func Cpugrep(pid int) string

func FGroup

func FGroup(n int) string

func Filegrep

func Filegrep(pid int) int

func LPad

func LPad(n int, v string) string
func Logo() string

func Memgrep

func Memgrep(pid int) int

func PidgrepActive added in v0.1.2

func PidgrepActive(pid int) bool

func Pidgrepstatus added in v0.1.2

func Pidgrepstatus(pid int) string

func Shellout

func Shellout(command string) (string, string, error)

func Threadgrep

func Threadgrep(pid int) int

func Watch

func Watch(pid int, seconds ...int)

Types

type SpinnerAnim added in v0.1.2

type SpinnerAnim struct {
	// contains filtered or unexported fields
}

func NewSpinnerAnim added in v0.1.2

func NewSpinnerAnim() *SpinnerAnim

func (*SpinnerAnim) Next added in v0.1.2

func (b *SpinnerAnim) Next() string

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL