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: doc/api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ All results stay in memory unless application (all threads including th
28
28
#### `get_func_stats(filter=None)`
29
29
30
30
Returns the function stats as a [`YFuncStat`](#yfuncstat) object.
31
-
filter parameter can be used to filter on YFuncStat attributes. You can use multiple filters at once in a single call and only those results are returned.
31
+
filter parameter can be used to filter on YFuncStat attributes. You can use multiple filters at once in a single call and only those results are returned. If no filter is defined, all function stats are aggregated(function stats are held per-thread under the hood) and returned.
32
32
33
33
One of the interesting features of this filter function is that you can get per-thread function call statistics only by providing the ctx_id of the thread you want to get results. Under the hood, yappi already holds the function stats by per-thread and upon request, it aggregates this data, when you provide a filter, it simply returns only that per-thread stats.
0 commit comments