giltene / jHiccup

jHiccup is a non-intrusive instrumentation tool that logs and records platform "hiccups" - including the JVM stalls that often happen when Java applications are executed and/or any OS or hardware platform noise that may cause the running application to not be continuously runnable.
Other
677 stars 92 forks source link

correct jHiccup.jar lookup #32

Closed ryenus closed 5 years ago

ryenus commented 5 years ago

When installed on macOS using Homebrew (brew install jhiccup), the path to jHiccup.jar couldn't be correctly resolved while using jHiccupLogProcessor. There're two reasons:

  1. the readlink_f function doesn't work because /usr/local/bin/jHiccupLogProcessor is a symbol link
  2. the file jHiccup.jar isn't in the same dir as that of jHiccupLogProcessor

FYI, here's the gist for the source of the improved readlink_f: https://gist.github.com/ryenus/88bc355515ce657b2da1d8ce1c16e4f9

giltene commented 5 years ago

Thanks for this. Didn't even know Homebrew did jhiccup. Cool!