Code Monkey home page Code Monkey logo

Comments (5)

lowleveldesign avatar lowleveldesign commented on May 24, 2024 1

That is an excellent idea! I will look into it in the nearest future.

from wtrace.

ygra avatar ygra commented on May 24, 2024 1

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.

lowleveldesign avatar lowleveldesign commented on May 24, 2024

@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.

ygra avatar ygra commented on May 24, 2024

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.

lowleveldesign avatar lowleveldesign commented on May 24, 2024

@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 (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.