While doing minimal reproducible example, i was using different machine. I reconfigured everything one more time and this time everything worked. The problem was that i really didn't provide proper compile flags to my dependent libraries (-p) and only did it for my main executable. After doing this from scratch profile is being created properly now.