The profiling API has undergone breaking changes between 1.* and 2.; in 1.; in particular, the object GetContext() API was unintuitive for consumers and expensive for the library (due to book-keeping). The API in 2.* is much simpler and more “obvious”. This is a breaking change.

Profiling in 1.*

Profiling in 2.*