After some days of test I figured out that the runtime patching mechanism patch_functions.cc is not safe to use in a production environment.
It seems to work well in a VS2010 project except for HeapAlloc() and HeapFree() but cannot be used in a VS2015 project due to some unresolved problems Open Issues.
the windows readme describes this alternative way to use tcmalloc:
An alternative to all the above is to statically link your application with libc, and then replace its malloc with tcmalloc. This allows you to just build and link your program normally; the tcmalloc support comes in a post-processing step. This is more reliable than the above technique (which depends on run-time patching, which is inherently fragile), though more work to set up. For details, see https://groups.google.com/group/google-perftools/browse_thread/thread/41cd3710af85e57b
Unfortunately the provided lik is urechable, seems that google had closed the group.
Could someone explain me how to do this?