Clarify experimental_flamegraph example.
Change-Id: Ib24e9afd63f7f4e2268cdae1374aead979423c7f
diff --git a/docs/data-sources/java-heap-profiler.md b/docs/data-sources/java-heap-profiler.md
index 5168d7d..f03977e 100644
--- a/docs/data-sources/java-heap-profiler.md
+++ b/docs/data-sources/java-heap-profiler.md
@@ -53,6 +53,18 @@
Note that this is **experimental** and the **API is subject to change**.
From this we can see how much memory is being held by each type of object
+For that, we need to find the timestamp and upid of the graph.
+
+```sql
+select distinct graph_sample_ts, upid from heap_graph_object
+```
+
+graph_sample_ts | upid |
+--------------------|--------------------|
+ 56785646801 | 1 |
+
+We can then use them to get the flamegraph data.
+
```sql
select name, cumulative_size
from experimental_flamegraph(56785646801, 1, 'graph')