| {{?__raw__}}{{{profile}}}{{/__raw__}} |
| |
| {{^__raw__}} |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| {{> www/common-header.tmpl }} |
| |
| {{> www/query_detail_tabs.tmpl }} |
| |
| <br/> |
| <div> |
| <h4>Download Profile (Available Formats): |
| <a style="font-size:16px;" class="btn btn-primary profile-download" |
| href="{{ __common__.host-url }}/query_profile_encoded?query_id={{query_id}}" |
| download="thrift_profile_{{query_id}}">Thrift</a> |
| <a style="font-size:16px;" class="btn btn-primary profile-download" |
| href="{{ __common__.host-url }}/query_profile_json?query_id={{query_id}}" |
| download="json_profile_{{query_id}}">Json</a> |
| <a style="font-size:16px;" class="btn btn-primary profile-download" |
| href="{{ __common__.host-url }}/query_profile_plain_text?query_id={{query_id}}" |
| download="profile_{{query_id}}">Text</a> |
| </h4> |
| </div> |
| |
| <pre>{{profile}}</pre> |
| |
| <script> |
| $("#profile-tab").addClass("active"); |
| document.querySelectorAll('.profile-download').forEach(function (profile_link) { |
| profile_link.download = profile_link.download.replace(/\W/g,'_'); |
| }); |
| </script> |
| {{> www/common-footer.tmpl }} |
| |
| {{/__raw__}} |