How to add GProf flag in Bazel build

Lately I’ve decided to profile my C++ program (built with Bazel) with GProf. However, not until some googling did I realize that I need to…