Add comment about gperftools 2.8 not deduplicating heapz samples.

This commit is contained in:
Aliaksey Kandratsenka 2018-09-03 16:44:52 -07:00
parent 63a12a5ed3
commit 49dbe4362b

View File

@ -123,6 +123,10 @@ class PERFTOOLS_DLL_DECL MallocExtension {
// therefore be passed to "pprof". This function is equivalent to
// ReadStackTraces. The main difference is that this function returns
// serialized data appropriately formatted for use by the pprof tool.
//
// Since gperftools 2.8 heap samples are not de-duplicated by the
// library anymore.
//
// NOTE: by default, tcmalloc does not do any heap sampling, and this
// function will always return an empty sample. To get useful
// data from GetHeapSample, you must also set the environment