Comments (7)
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.
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.
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.
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.
from pprof.
@nolanmar511 This is fixed with #183?
from pprof.
Yes -- we did fix this with #183
from pprof.
Related Issues (20)
- Switch to the new flame graph implementation by default and remove d3 dependency HOT 3
- Hash-pin workflow Actions
- Module did not self-register: Worker Threads HOT 1
- disasm: no matches found for regexp HOT 2
- Add tests for javascript code HOT 3
- Error & Troubleshooting HOT 1
- Support code coverage in javascript test HOT 1
- Add elf type and load segment information to mapping HOT 1
- pprof on MacOS can't find dot? HOT 3
- UI Support for tag commands: tagfocus, tagignore, tagshow, tagroot, etc HOT 1
- -tagroot and -tagleaf in UI aren't including the tag name? HOT 4
- New flame graph appears to reset the profile state in an unexpected way HOT 1
- If the file under the current path contains a colon, go tool pprof will parse it into a url and will not work properly.
- Compatibility guarantees for Profile-Guided Optimization (PGO) purposes with Go HOT 2
- Set Function.start_line when symbolizing HOT 3
- Patch CVE for d3-color HOT 1
- make sources/sinks a different color HOT 2
- Canvas size related to initial size of a graph, should use the full space
- New flamegraph: 'hover shows details on the top' from old flame-graph missing
- Nice to have: 'grab' cursor when dragging the graph 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 pprof.