adding profiling for linked library