Add naive implementation for conditional displaying in perf page