From a92dbc2fdb71fa3578d4b1953c3594961a596818 Mon Sep 17 00:00:00 2001
From: Alexey Alexandrov <aalexand@google.com>
Date: Wed, 1 Nov 2023 12:45:02 -0700
Subject: [PATCH] Clarify that labels with pprof:: prefix are reserved for
 pprof use.

---
 proto/profile.proto | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/proto/profile.proto b/proto/profile.proto
index 6fd1dd17..c41ec50e 100644
--- a/proto/profile.proto
+++ b/proto/profile.proto
@@ -128,7 +128,10 @@ message Sample {
 }
 
 message Label {
-  int64 key = 1;   // Index into string table
+  // Index into string table. An annotation for a sample (e.g.
+  // "allocation_size") with an associated value.
+  // Keys with "pprof::" prefix are reserved for internal use by pprof.
+  int64 key = 1;
 
   // At most one of the following must be present
   int64 str = 2;   // Index into string table