You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/product/explore/profiling/index.mdx
+21-11Lines changed: 21 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,15 +51,29 @@ From this view, you can also click "View Profile" to zoom in on the flame graph.
51
51
52
52
## Profiling Page
53
53
54
-
The **Profiling** page shows a list of transactionsin descending order of executiontime for your selected project(s).
54
+
On the [**Profiling**](https://sentry.io/orgredirect/organizations/:orgslug/profiling/) page, you'll find two tabs: "transactions" and "flamegraph". The transactions tab lists transactions in descending order of execution-time for your selected project(s), while the flamegraph tab shows an aggregate flamegraph that spans across transactions. Depending on how profiling has been set up, you might be interested more in one than the other.
55
55
56
-

56
+
Using the Profiling page is typically an advanced workflow where you can select transactions of interest directly and closely examine profiling data.
57
57
58
-
The "Profiles by Percentiles" timeline chart can be used to filter the transaction data by highlighting the desired time period. Below that, there are three widgets to choose from.
58
+
### Transactions Tab
59
59
60
-
The "Slowest Functions" widget shows you a list of the functions that took the most time in your application. It lists the transactions the function was called from. Clicking on a transaction will take you to an example profile. The "Most Regressed Functions" and "Most Improved Functions" widgets show you a list of the functions that have gotten slower/faster over time. Clicking on the timings will take you to an example from either before/after the detected regression/improvement.
60
+
This page shows a list of transactions in descending order of execution-time for your selected project(s).
61
61
62
-
Using the Profiling page is typically an advanced workflow, enabling you to directly select transactions of interest and examine detailed profiling data.
The "Profiles by Percentiles" timeline chart can be used to filter transaction data by highlighting a desired time period.
65
+
66
+
The "Slowest Functions" widget lists the functions that took the most time in your application, including the transactions each function was called from. Clicking on a transaction will take you to an example profile.
67
+
68
+
### Flamegraph Tab
69
+
70
+
The flamegraph tab shows an aggregate flamegraph based on the query you selected. You can use this tab to visualize a flamegraph across transaction boundaries so you can better understand bottlenecks that might be affecting the system as a whole. The aggregate flamegraph is a more advanced workflow that's relevant to users who've set up continuous profiling and are interested in looking at system-wide performance.
The function width in an aggregate flamegraph represents the number of times a particular function has been sampled. This view shows you where your system is spending the majority of its time. We recommend that you look for functions with a large sample count and optimize them, as they're the ones most frequently occupying the program's stack.
75
+
76
+
You can right click on a function to open some example profiles and see the function executing. This is useful for gaining context into how and why that function might be running.
63
77
64
78
## Profiling Summary Page
65
79
@@ -71,18 +85,14 @@ While the **Profiling** page can be used to view information about the profiles
71
85
72
86
This information allows you to dive deeper into what your code was executing during this transaction and may get you closer to the root of the problem.
73
87
74
-
The top of the page has a percentile chart with profile durations and a search bar. It helps you visually identify possible performance regressions or changes. You can isolate the date-time ranges you want to investigate by clicking and dragging it. If you want to narrow down your investigation to profiles executed under a specific environment, use the search bar filters.
88
+
If you want to narrow down your investigation to profiles executed in a specific environment, use the search bar filters.
75
89
76
-
The bottom right side of the page has aggregated information about function regressions detected during your selected time range plus, a list of the slowest functions. There's also a list of general information about the profile including:
90
+
The right side of the page has a list of the slowest functions. There's also a list of general information about the profile including:
77
91
78
92
- When the profile was last seen
79
93
- The total number of profiles collected for this transaction
80
94
- p75, p95, and p99 values
81
95
82
-
Below the general information is a list of regressions that Sentry may have detected. Clicking the before/after timings in the regressed function list will take you to example flamecharts of the before and after execution so that you can investigate what changed.
83
-
84
-
There's also a list of the slowest functions which are consuming the most time in your application. These are good candidates for optimization.
85
-
86
96
On the left side of the page is an aggregate flamegraph as well as a digest of the slowest and most regressed functions. We recommend looking for wide frames that have no children as a starting point. This will allow you to identify frames that are often occupying the stack and make good candidates for optimization. Read the [Flame Graphs and Aggregated Flame Graphs](/product/explore/profiling/flame-charts-graphs) docs if you'd like a deeper understanding of this data.
87
97
88
98
An alternative way to visualize the flamegraph is by clicking on the "Call Tree" button which will render the flamegraph as an inverted call tree with the leftmost nodes first, which will then expand to their parent nodes. The sample column in the call tree represents the frequency with which Profiling collected stack samples where that function was on the stack. You can expand the tree by clicking on the caret before the function name. (Holding ⌘ at the same time will expand that entire branch all the way to the root.)
0 commit comments