Step - profile

profile ยท category: Running and showing results

Runs the traversal and returns its metrics per step of the optimized plan (time, traverser counts; ProfileType.Memory adds memory; see the book page Profiling and execute()).

Forms

profile()
profile(arg1: ProfileType)

Example

g.v().count().profile().to_map()["optimizer_rules_applied"]   // ["count_pushdown"]

See also