Re:Show HN: Wtrace – A command line tracing tool for Windows...
by nailer on Tuesday February 28, 2017 @06:28AM
(#13752961)
Looks like the output is flat text, so powershell pipes:
wtrace mspaint | where {$_.syscall -eq "FileIO/Close" }
Don't yet work. I've made a humble feature request (https://github.com/lowleveldesign/wtrace/issues/1) if anyone is interested.Filtering by time or file, JSON/csv output and all the other powershell goodness would be awesome for a tool like this.
Re:Show HN: Wtrace – A command line tracing tool for Windows...
by xorblurb on Tuesday February 28, 2017 @02:33PM
(#13757012)
That's why grep is great.
Re:Show HN: Wtrace – A command line tracing tool for Windows...
by eriknstr on Tuesday February 28, 2017 @09:01PM
(#13760291)
grep's good for sure but the comment you are replying to is a reply in turn to someone speaking specifically about powershell piping capabilities. personally i am a unix person, not a windows person, but i believe that for a tool to be most effective it should adhere to the workflow of the platform it is written for. since wtrace is written for windows it makes sense to expect that it should integrate well with the windows way of doing things.
Re:Show HN: Wtrace – A command line tracing tool for Windows...
by dekhn on Tuesday February 28, 2017 @09:33AM
(#13753955)
The reason the filtering needs to be in the tool, not the shell, is performance. strace hooks into every syscall made by the application, and it generates a bunch of IO, which affects the performance of the traced application badly.
Re:Show HN: Wtrace – A command line tracing tool for Windows...
by MichaelMoser123 on Tuesday February 28, 2017 @06:23AM
(#13752940)
strace is a command line tool and it has the -e option to specify what calls should be displayed.
If you need filtering, sorting, correlating, and so on, you should add pipes after this program. I believe Powershell pipes are even more powerful than plain text ones, although I haven't used them myself.