1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

7 Commits

Author SHA1 Message Date
Anand Sudhir Prayaga
c8b6eb2b60 Fix references to old Github repo location with new one 2018-11-28 14:47:06 +01:00
Chris Cummer
dc50bce2ed Add -p/--profile flag to enable cpu/memory profiling
1. Compile the binary with the profiling flag in it.
2. Run the binary with profiling enabled: ./wtf -p
3. Run the go profiling tool against the resulting *.pprof file:

    go tool pprof --pdf /path/to/wtfbinary /var/path/to/cpu.pprof >
profile.pdf

4. View pretty PDF file
2018-07-17 10:17:35 -07:00
Chris Cummer
0e141e03c8 Closes #217. Use XDG-compatible config directory
This change is largely experimental and it's entirely possible it could
wipe out your existing configuration. Be warned.

Old config path was: ~/.wtf/
New config path is:  ~/.config/wtf/

If an existing config directory already exists, this change attempts to
copy it to the new location.

Note that if your config file contains paths to files in the old config
directory, they won't work. You'll need to change them by hand.
2018-06-20 16:46:02 -07:00
Chris Cummer
582eba4c7f Make flags package responsible for its own display 2018-06-16 12:46:16 -07:00
Chris Cummer
4496cc7c31 Clean up the flag and config handling in main() 2018-06-16 09:14:24 -07:00
Chris Cummer
dd42080ed8 Move responsibility for version display out of flags 2018-06-16 08:37:55 -07:00
Chris Cummer
4a00c114ce Move command line flags into it's own module 2018-06-16 08:31:11 -07:00