Add edge profiling support to the runtime library