[PROF-103] Add support for collecting layer profiling data.