Netflix / flamescope

FlameScope is a visualization tool for exploring different time ranges as Flame Graphs.
Apache License 2.0
3k stars 168 forks source link

feat: file-backed cache for heatmap #62

Open iori-yja opened 5 years ago

iori-yja commented 5 years ago

In some use cases, avoiding parsing perf data for multiple times contributes the flamescope server performance & its users' experience. flamescope already has an in-memory cache for the analyzed perf data, and this PR adds file-backed one in case of in-memory cache miss. In our case, we render some graphs in a page by querying to flamescope which we run with three or a few more instances and the most simplest way to share processed data between them is file-backed cache.

To enable this feature, change USE_HEATMAP_FILECACHE in app/config.py to True.

Related issue: https://github.com/Netflix/flamescope/issues/58