Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-01 15:13:32 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-01 15:13:32 +0300
commit6c7d90ede4d2890b2ca740239cd9a5338f12ba34 (patch)
tree59a0fde813364a626fe201dc58316dee001f96e1 /app/assets/javascripts/performance_bar
parent3cb9e9a5070184e59cb6ff33a4ce381ed14a6fe5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/performance_bar')
-rw-r--r--app/assets/javascripts/performance_bar/components/performance_bar_app.vue9
1 files changed, 9 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 f204f0ebfaa..7fd63acbede 100644
--- a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue
+++ b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue
@@ -1,6 +1,7 @@
<script>
import { GlSafeHtmlDirective } from '@gitlab/ui';
import { glEmojiTag } from '~/emoji';
+import { mergeUrlParams } from '~/lib/utils/url_utility';
import { s__ } from '~/locale';
import AddRequest from './add_request.vue';
@@ -123,6 +124,9 @@ export default {
const fileName = this.requests[0].truncatedUrl;
return `${fileName}_perf_bar_${Date.now()}.json`;
},
+ flamegraphPath() {
+ return mergeUrlParams({ performance_bar: 'flamegraph' }, window.location.href);
+ },
},
mounted() {
this.currentRequest = this.requestId;
@@ -175,6 +179,11 @@ export default {
s__('PerformanceBar|Download')
}}</a>
</div>
+ <div v-if="currentRequest.details" id="peek-flamegraph" class="view">
+ <a class="gl-text-blue-200" :href="flamegraphPath">{{
+ s__('PerformanceBar|Flamegraph')
+ }}</a>
+ </div>
<a v-if="statsUrl" class="gl-text-blue-200 view" :href="statsUrl">{{
s__('PerformanceBar|Stats')
}}</a>