Comments (2)
For now I'm going with the "recreating timelines" approach. Plenty of other tracers do this, too, so our users should be able to handle its inaccuracies.
We could also enrich our sample-based timelines with stack traces from runtime events. During a single 10ms span (i.e. one CPU sample), we may have access to many more stack traces of events that occurred during the sample, such as preemption, blocking/unblocking etc. This should probably be an opt-in feature, though. Turning a single CPU sample into a 10ms span is already making it tricky to interpret the data correctly. If we mix this with more accurate events then users are even more prone to assuming that the entire sampled timeline is accurate, or that a 9.8ms long span (the remainder of a sample) definitely was longer than a 0.2ms span (a span resulting from incorporating traced events).
Screenshot of the current WIP:
from gotraceui.
At the same time it looks like we might have to incorporate traced events. I'm still investigating, but at first glance it looks like we're not getting samples for goroutines that are blocked. This leads to the following screenshot:
I've disabled span merging so that each individual sample is visible. During the grey regions we're sleeping, and we don't seem to be receiving any samples, making it look like we're spending a lot of time in crypto/sha1.Sum, while in reality we've returned from it and are sleeping a lot.
from gotraceui.
Related Issues (20)
- SIGTRAP: trace trap (signal arrived during cgo execution) panic
- Web version HOT 2
- Support the Chromium Event JSON format
- Add support for markers HOT 1
- Changing event filters in span info panel doesn't maintain sorted column
- Make goroutine states and span labels match runtime nomenclature more closely
- Make sure we use "before/after trace start/end" everywhere we display timestamps
- Support exporting metrics (such as heap size and GC goal) to files
- Display flame graph for memory allocations
- UI doesn't come up HOT 4
- Unable to open trace file: time stamps out of order HOT 4
- Allow measuring time
- Display CPU samples on a mini track when stack tracks are turned off
- Display source location for bad trace region
- Does not work with go 1.22 HOT 3
- panic: invalid memory address or nil pointer dereference HOT 6
- darwin: `ld: warning: ignoring duplicate libraries: '-lobjc'`
- Macos: Stuck after clicking "Open trace" HOT 2
- [Wayland/Sway] Hang/Crash when clicking "select user region" where there are many regions HOT 2
- Support for v1.22 trace file HOT 1
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 gotraceui.