Coder Social home page Coder Social logo

Comments (7)

aalexand avatar aalexand commented on June 17, 2024

One simple way to address this is to make show filter for tags handled before the tag focus handling (here)[https://github.com/google/pprof/blob/805912e7989642128fbdcec1fc80e04396e6f709/internal/driver/driver_focus.go#L49]

Then it would be possible to do something like -tagshow=request -tagfocus=256kb:512kb and it would do what you want I think, except that it wouldn't show you other tags.

from pprof.

ahh avatar ahh commented on June 17, 2024

That would be an OK stopgap, but I generally want to see all the tags, I just want to filter based on particulars.

from pprof.

aalexand avatar aalexand commented on June 17, 2024

Maybe we should do the simple thing first then.

For the syntax you proposed, I think I'd prefer the desired tag name to be specified exactly, not a substring or regexp match. That would allow recognizing whether the same tag is requested and handle things like -tagfocus=mytag=foo -tagfocus=mytag=bar -tagfocus=myothertag=baz naturally as (mytag == "foo" || mytag == "bar") || myothertag == "baz". From the tag names that I saw so far, I can't see much advantage of being able to regexp match tag names.

from pprof.

nolanmar511 avatar nolanmar511 commented on June 17, 2024

This is not a solution, but if you really want to try out this functionality right now, you could do something like -tagfocus=262144request:524288request, which would allow other tags to be shown.

This is definitely hack-y and takes advantage of an odd quirk in which tag names are used as units.

from pprof.

ahh avatar ahh commented on June 17, 2024

from pprof.

aalexand avatar aalexand commented on June 17, 2024

@nolanmar511 This is fixed with #183?

from pprof.

nolanmar511 avatar nolanmar511 commented on June 17, 2024

Yes -- we did fix this with #183

from pprof.

Related Issues (20)

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.