TraceBuiltins
[expr]Sort Options:
TraceBuiltins[Graphics3D[Tetrahedron[]]] (* See console log *)
By default, the output is sorted by the name:
TraceBuiltins[Times[x, x]] (* See console log *)
By default, the output is sorted by the number of calls of the builtin from highest to lowest:
TraceBuiltins[Times[x, x], SortBy->"count"] (* See console log *)
You can have results ordered by name, or time.
Trace an expression and list the result by time from highest to lowest.
TraceBuiltins[Times[x, x], SortBy->"time"] (* See console log *)