Comments (5)
That is an excellent idea! I will look into it in the nearest future.
from wtrace.
You could emit CLIXML with a switch on the command line which PowerShell can natively interpret and deserialize back into its own data structures.
from wtrace.
@ygra thank you! I haven't heard about CLIXML, and it seems to be a neat way to accomplish Powershell integration. I plan to work on this feature this week and will update you with the results. The only thing that worries me right now about CLIXML is that it might be too slow for the number of events wtrace generates.
from wtrace.
Well, you can't stream it. That's probably a problem. It also comes with a lot of overhead. CSV may be smaller, but less flexible, as you have to have an explicit parsing step, you only have strings (so operators like -gt
on columns that are actually numbers don't really work).
So perhaps a PowerShell module that acts as a wrapper might be a better approach. Run the native command, parse the output and generate objects that can be further filtered or worked with down the pipeline. I guess any approach that has to first consume everything might not work here.
If parsing performance is a problem you could even write the parsing and object generation code in C# and just call that from PowerShell within your module.
from wtrace.
@mikemaccana @ygra thank you again for your input and ideas. Please have a look at the newest release and updated wiki. I hope that the output is OK with you.
Unfortunately, because of the way PowerShell handles Ctrl+C, it is not possible to gracefully end a tracing session with Ctrl+C - it will be immediately stopped, with no summary events printed. I struggled to make it work, but after many trials I gave up.
from wtrace.
Related Issues (16)
- wiki not found HOT 2
- Feature request: autoupdates HOT 1
- Add support for UDP packages HOT 1
- Support loadimage HOT 1
- Add support for decoding Windows 10 TraceLogging API events HOT 3
- Is there a way to associate rpcclientcall with rpcservercall? HOT 2
- nothing collected for netsh HOT 4
- Support logging to a file in JSON format HOT 2
- Trying to diagnose why wbadmin crashes, wtrace reports error. HOT 3
- Tracing for modern apps HOT 1
- File I/O HOT 1
- wtrace not working in Docker HOT 2
- KernelTraceControl.dll not copied by default HOT 1
- 2.0 stopped working on Win7 HOT 1
- How do I listen for CreateProcess HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wtrace.