sourcegraph / appdash

Application tracing system for Go, based on Google's Dapper.
https://sourcegraph.com
Other
1.72k stars 137 forks source link

Add the ability to switch to a profiling view. #23

Closed slimsag closed 9 years ago

slimsag commented 9 years ago

This change adds the ability to switch between the current meta-data table view (which is the default):


image


To a new profiling view with the ability to show you which requests took the most (self time, self+children time, or cumulative time):


image


Clicking any of the table headers, for example Time + Children (ms), sorts by that colum as you'd expect:


image


If you click on a span in the timeline UI to narrow your view onto the sub-span, you can like-wise also view profiling information for just that sub-span:


image


bootstrap-table.js (MIT licensed) is used to fetch and display the JSON profile data calculated on the Go web-server.

Additionally, two new public functions are exposed on *traceapp.App: URLToTraceProfile and URLToTraceSpanProfile which allow for the creation of URL's to root-trace and sub-span-trace profiles, respectively.