diff options
Diffstat (limited to 'app/assets/javascripts/performance_bar/components/performance_bar_app.vue')
-rw-r--r-- | app/assets/javascripts/performance_bar/components/performance_bar_app.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue index ed30198244f..710f49b833c 100644 --- a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue +++ b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue @@ -124,6 +124,9 @@ export default { const fileName = this.requests[0].truncatedUrl; return `${fileName}_perf_bar_${Date.now()}.json`; }, + memoryReportPath() { + return mergeUrlParams({ performance_bar: 'memory' }, window.location.href); + }, }, mounted() { this.currentRequest = this.requestId; @@ -182,6 +185,15 @@ export default { s__('PerformanceBar|Download') }}</a> </div> + <div + v-if="currentRequest.details && env === 'development'" + id="peek-memory-report" + class="view" + > + <a class="gl-text-blue-200" :href="memoryReportPath">{{ + s__('PerformanceBar|Memory report') + }}</a> + </div> <div v-if="currentRequest.details" id="peek-flamegraph" class="view"> <span class="gl-text-white-200">{{ s__('PerformanceBar|Flamegraph with mode:') }}</span> <a class="gl-text-blue-200" :href="flamegraphPath('wall')">{{ |