mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
By passing the shared_ptrs to TrackedObjectsVK by value, we will always require at least a decrement of the shared_ptr count, and possibly an increment too. Since for most cases the tracked object has already been tracked, passing by const ref results in no increment or decrement. Ignoring the time value, since this is a flamegraph, we can see almost all time spent tracking is spent on shared_ptr decrement: 