magnax 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- magnax/__init__.py +3 -0
- magnax/__main__.py +25 -0
- magnax/debug.py +65 -0
- magnax/public/__init__.py +1 -0
- magnax/public/adb/linux/adb +0 -0
- magnax/public/adb/linux_arm/adb +0 -0
- magnax/public/adb/mac/adb +0 -0
- magnax/public/adb/windows/AdbWinApi.dll +0 -0
- magnax/public/adb/windows/AdbWinUsbApi.dll +0 -0
- magnax/public/adb/windows/adb.exe +0 -0
- magnax/public/adb.py +96 -0
- magnax/public/android_fps.py +750 -0
- magnax/public/apm.py +1306 -0
- magnax/public/apm_pk.py +184 -0
- magnax/public/common.py +1598 -0
- magnax/public/config.json +1 -0
- magnax/public/ios_perf_adapter.py +790 -0
- magnax/public/report_template/android.html +526 -0
- magnax/public/report_template/ios.html +482 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/AdbWinApi.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/AdbWinUsbApi.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/SDL2.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/adb.exe +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/avcodec-60.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/avformat-60.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/avutil-58.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/icon.png +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/libusb-1.0.dll +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/open_a_terminal_here.bat +1 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/scrcpy-console.bat +2 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/scrcpy-noconsole.vbs +7 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/scrcpy-server +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/scrcpy.exe +0 -0
- magnax/public/scrcpy/scrcpy-win32-v2.4/swresample-4.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/AdbWinApi.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/AdbWinUsbApi.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/SDL2.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/avformat-60.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/avutil-58.dll +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/open_a_terminal_here.bat +1 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/scrcpy-noconsole.vbs +7 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/scrcpy-server +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/scrcpy.exe +0 -0
- magnax/public/scrcpy/scrcpy-win64-v2.4/swresample-4.dll +0 -0
- magnax/static/css/highlight.min.css +9 -0
- magnax/static/css/magnax-dark-theme.css +1237 -0
- magnax/static/css/select2-bootstrap-5-theme.min.css +3 -0
- magnax/static/css/select2-bootstrap-5-theme.rtl.min.css +3 -0
- magnax/static/css/select2.min.css +1 -0
- magnax/static/css/sweetalert2.min.css +1 -0
- magnax/static/css/tabler.demo.min.css +9 -0
- magnax/static/css/tabler.min.css +14 -0
- magnax/static/image/500.png +0 -0
- magnax/static/image/avatar.png +0 -0
- magnax/static/image/empty.png +0 -0
- magnax/static/image/readme/home.png +0 -0
- magnax/static/image/readme/pk.png +0 -0
- magnax/static/js/apexcharts.js +14 -0
- magnax/static/js/gray.js +16 -0
- magnax/static/js/highlight.min.js +1173 -0
- magnax/static/js/highstock.js +803 -0
- magnax/static/js/html2canvas.min.js +20 -0
- magnax/static/js/jquery.min.js +2 -0
- magnax/static/js/magnax-chart-theme.js +492 -0
- magnax/static/js/select2.min.js +2 -0
- magnax/static/js/sweetalert2.min.js +1 -0
- magnax/static/js/tabler.demo.min.js +9 -0
- magnax/static/js/tabler.min.js +9 -0
- magnax/static/logo/logo.png +0 -0
- magnax/templates/404.html +30 -0
- magnax/templates/analysis.html +1375 -0
- magnax/templates/analysis_compare.html +600 -0
- magnax/templates/analysis_pk.html +680 -0
- magnax/templates/base.html +365 -0
- magnax/templates/index.html +2471 -0
- magnax/templates/pk.html +743 -0
- magnax/templates/report.html +416 -0
- magnax/view/__init__.py +1 -0
- magnax/view/apis.py +952 -0
- magnax/view/pages.py +146 -0
- magnax/web.py +345 -0
- magnax-1.0.0.dist-info/METADATA +242 -0
- magnax-1.0.0.dist-info/RECORD +87 -0
- magnax-1.0.0.dist-info/WHEEL +5 -0
- magnax-1.0.0.dist-info/entry_points.txt +2 -0
- magnax-1.0.0.dist-info/licenses/LICENSE +21 -0
- magnax-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1375 @@
|
|
|
1
|
+
{% extends 'base.html' %}
|
|
2
|
+
{% block title %}SoloX - {% if lan == 'cn' %} 报告分析 {% else %} Analysis {% endif %}{% endblock %}
|
|
3
|
+
|
|
4
|
+
{% block css %}{% endblock %}
|
|
5
|
+
|
|
6
|
+
{% block page_title %}
|
|
7
|
+
<a class="active" style="color: #1e71df" href="/report?lan={{ lan }}">{% if lan == 'cn' %} 报告管理 {% else %} Report {% endif %}</a>
|
|
8
|
+
<svg t="1635085520789" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="165732" width="200" height="200"><path d="M360.704 280.746667l45.226667-45.226667 246.570666 246.528a42.666667 42.666667 0 0 1 0 60.330667l-246.528 246.570666-45.22666601-45.269333 231.42400001-231.466667-231.466667-231.424z" p-id="165733"></path></svg>
|
|
9
|
+
{{ app }}
|
|
10
|
+
<svg t="1635085520789" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="165732" width="200" height="200"><path d="M360.704 280.746667l45.226667-45.226667 246.570666 246.528a42.666667 42.666667 0 0 1 0 60.330667l-246.528 246.570666-45.22666601-45.269333 231.42400001-231.466667-231.466667-231.424z" p-id="165733"></path></svg>
|
|
11
|
+
{{ scene }}
|
|
12
|
+
{% endblock %}
|
|
13
|
+
|
|
14
|
+
{% block ms_auto %}
|
|
15
|
+
<div class="col-auto ms-auto d-print-none">
|
|
16
|
+
<div class="btn-list">
|
|
17
|
+
<a class="btn" data-bs-toggle="modal" data-bs-target="#modal-compare">
|
|
18
|
+
<svg t="1682562949101" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20010" width="50" height="50"><path d="M478.976 428.6976h372.8896c36.096 0 65.3312-29.2352 65.3312-65.3312V169.3696c0-36.096-29.2352-65.3312-65.3312-65.3312H478.976c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 36.0448 29.2352 65.3312 65.3312 65.3312zM533.6064 609.1776H160.7168c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 36.096 29.2352 65.3312 65.3312 65.3312h372.8896c36.096 0 65.3312-29.2352 65.3312-65.3312v-193.9968c0-36.096-29.2352-65.3312-65.3312-65.3312zM952.1152 550.5024l-76.4416-79.0016a43.4176 43.4176 0 0 0-57.856-4.096l-84.5824 65.8432a43.37664 43.37664 0 0 0-7.5776 60.928c14.7456 18.8928 41.984 22.3232 60.928 7.5776l9.3184-7.2704c-0.9728 8.2432-2.4576 16.8448-4.5568 25.6512-15.9744 65.6896-60.8256 112.5376-133.376 139.3664-22.4768 8.2944-33.9968 33.28-25.7024 55.7568 6.4512 17.5104 23.0912 28.3648 40.7552 28.3648 5.0176 0 10.0864-0.8704 15.0528-2.7136 135.5264-50.0736 184.2176-151.1424 194.816-237.1072l6.8608 7.0656a43.25888 43.25888 0 0 0 31.232 13.2096c10.8544 0 21.76-4.0448 30.1568-12.1856 17.152-16.64 17.6128-44.1344 0.9728-61.3888zM189.44 578.5088c10.752 0 21.504-3.9936 29.8496-11.8784l77.824-73.6768c17.408-16.4864 18.176-43.9808 1.6896-61.3888-16.4864-17.408-43.9808-18.176-61.3888-1.6896l-8.6016 8.1408c0.2048-8.2944 0.8192-16.9984 2.0992-25.9584 9.5232-66.9184 49.664-117.9136 119.2448-151.6032 21.6064-10.4448 30.6176-36.4032 20.1728-58.0096-10.4448-21.6064-36.4032-30.6176-58.0096-20.1728-130.048 62.976-168.7552 168.3456-170.9568 254.9248l-7.4752-6.4a43.39712 43.39712 0 1 0-56.2688 66.0992l83.712 71.2192a42.98752 42.98752 0 0 0 28.1088 10.3936z" fill="#2595E8" p-id="20011"></path><path d="M883.2 112.0256a65.28 65.28 0 0 0-31.2832-7.9872H478.976c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 36.096 29.2352 65.3312 65.3312 65.3312h372.8896a65.024 65.024 0 0 0 40.704-14.2848c9.216-42.7008 14.1824-86.9376 14.1824-132.4032 0.0512-58.9824-8.2944-115.9168-23.552-169.984zM657.92 759.5008c-17.8176 6.5536-28.672 23.6032-28.3136 41.5744 33.28-22.3232 64.3072-47.7696 92.6208-75.8784-18.2272 13.6704-39.6288 25.1392-64.3072 34.304zM771.7376 669.6448c46.08-58.112 82.0736-124.5696 105.2672-196.8128l-1.28-1.3312a43.4176 43.4176 0 0 0-57.856-4.096l-84.5824 65.8432a43.37664 43.37664 0 0 0-7.5776 60.928c14.7456 18.8928 41.984 22.3232 60.928 7.5776l9.3184-7.2704c-0.9728 8.2432-2.4576 16.8448-4.608 25.6512-4.4032 17.92-10.9568 34.4064-19.6096 49.5104zM533.6064 609.1776H160.7168c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 3.3792 0.3584 6.656 0.8192 9.8816 58.7776 18.3296 121.2416 28.16 186.0096 28.16 115.6096 0 223.8464-31.5392 316.7232-86.3232v-145.7152c0-36.096-29.2352-65.3312-65.3312-65.3312z" fill="#3A9CED" p-id="20012"></path><path d="M734.208 104.0384H478.976c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 36.096 29.2352 65.3312 65.3312 65.3312h136.5504c67.5328-92.2624 110.2848-203.6736 118.6816-324.6592zM95.3856 684.3392c5.3248 0.1536 10.6496 0.4096 16.0256 0.4096 107.9296 0 209.408-27.392 297.984-75.52H160.7168c-36.096 0-65.3312 29.2352-65.3312 65.3312v9.7792z" fill="#59ADF8" p-id="20013"></path><path d="M312.32 182.3232C183.296 244.736 144.2304 348.928 141.4656 435.1488c31.8976-9.984 62.5664-22.5792 92.0576-37.3248C246.4768 337.92 285.6448 291.7376 350.1568 260.5056c21.6064-10.4448 30.6176-36.4032 20.1728-58.0096-10.4448-21.6064-36.4544-30.6176-58.0096-20.1728zM72.6528 435.712c-4.608 5.4272-7.4752 11.7248-9.0112 18.2272 25.9072-4.5568 51.3024-10.5472 75.9808-18.2272l-5.7856-4.9152c-18.2272-15.5136-45.6192-13.312-61.184 4.9152zM519.8848 104.0384h-40.9088c-36.096 0-65.3312 29.2352-65.3312 65.3312V262.144a624.7936 624.7936 0 0 0 106.24-158.1056z" fill="#6BC2FC" p-id="20014"></path></svg>
|
|
19
|
+
{% if lan == 'cn' %} 结果比对 {% else %} Compare {% endif %}
|
|
20
|
+
</a>
|
|
21
|
+
<a onclick="saveHtml('{{ platform }}','{{ scene }}')" class="btn">
|
|
22
|
+
<svg t="1682566365235" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="26441" width="50" height="50"><path d="M707.2 79.9H238.6c-11.6 0-21 9.4-21 21V923c0 11.6 9.4 21 21 21h704.9V316.3L707.2 79.9" fill="#FFFFFF" p-id="26442"></path><path d="M943.6 960h-705c-20.4 0-37-16.6-37-37V100.9c0-20.4 16.6-37 37-37h468.6c4.2 0 8.3 1.7 11.3 4.7L954.9 305c3 3 4.7 7.1 4.7 11.3V944c0 8.9-7.2 16-16 16z m-705-864.1c-2.7 0-5 2.2-5 5V923c0 2.7 2.2 5 5 5h689V323l-227-227h-462z" fill="#00365B" p-id="26443"></path><path d="M943.6 316.3H707.2V79.9z" fill="#FFFFFF" p-id="26444"></path><path d="M943.6 332.3H707.2c-8.8 0-16-7.2-16-16V79.9c0-6.5 3.9-12.3 9.9-14.8s12.9-1.1 17.4 3.5L954.9 305c4.6 4.6 5.9 11.5 3.5 17.4-2.5 6-8.3 9.9-14.8 9.9z m-220.4-32H905L723.2 118.6v181.7z" fill="#00365B" p-id="26445"></path><path d="M104.7 414.2h698.8c22.4 0 40.6 19.8 40.6 44.3v301.4c0 24.5-18.2 44.3-40.6 44.3H104.7c-22.4 0-40.6-19.8-40.6-44.3V458.5c-0.1-24.5 18.1-44.3 40.6-44.3z" fill="#C24978" p-id="26446"></path><path d="M241.1 701.6c2.9 3.3 7.7 4.9 14.4 4.7 6.6-0.2 11.4-1.8 14.1-4.7s4.1-6.3 4.1-10.1V516.8c0-3.8-1.5-7.2-4.4-10.3-2.9-3-7.7-4.6-14.4-4.6-7 0-11.8 1.6-14.4 4.8-2.6 3.2-3.8 6.6-3.8 10v68.7H150v-68.7c0-3.8-1.4-7.2-4.1-10.3-2.8-3-7.5-4.6-14.1-4.6s-11.4 1.6-14.4 4.8c-2.9 3.2-4.4 6.6-4.4 10v174.7c0 3.4 1.5 6.8 4.4 10.1 2.9 3.3 7.7 4.9 14.4 4.7 6.6-0.2 11.4-1.8 14.1-4.7s4.1-6.3 4.1-10.1v-74.1h86.6v74.1c0.1 3.6 1.5 7 4.5 10.3z m128.1 4.7c6.6 0 11.4-1.5 14.2-4.6 2.8-3 4.3-6.5 4.3-10.3V537.9h36.5c3.4 0 6.7-1.2 10-3.7 3.2-2.5 4.8-6.7 4.8-12.8 0-5.9-1.5-10.1-4.6-12.7-3-2.6-6.5-3.8-10.3-3.8h-110c-3.8 0-7.2 1.3-10.3 3.8-3 2.6-4.6 6.8-4.6 12.7 0 6.1 1.6 10.4 4.8 12.8 3.2 2.5 6.6 3.7 10 3.7h36.5v153.6c0 3.4 1.4 6.7 4.3 10 3 3.2 7.7 4.8 14.4 4.8z m267.7-4.1c2.2 2.9 6.3 4.3 12.4 4.1 4.4 0 7.8-0.6 10.3-1.9 2.5-1.2 4.3-2.8 5.4-4.8 1.1-2 1.8-4.3 1.9-7 0.1-2.7 0-5.4-0.4-8.3L642 523.6c-1.1-7-3.9-12.4-8.4-16.1-4.5-3.7-9.5-5.6-15-5.6-5.7 0-10.7 1.5-15 4.4-4.3 2.9-7.6 8.9-10.1 17.8l-31.6 119.7-32.5-119.1c-2.7-9.1-6.1-15.2-10.3-18.2-4.2-3-9.3-4.6-15.4-4.6s-11.2 1.8-15.2 5.4c-4.1 3.6-6.6 8.7-7.6 15.4l-24.5 161.6c-1.3 8-0.9 13.6 1.4 17 2.3 3.3 6.4 5 12.3 5 7.2 0 12.2-1.7 15-5 2.8-3.3 4.6-8.4 5.6-15.2L504 585.2c0.8-4.6 1.9-6.8 3.3-6.8s2.8 2.3 4.1 6.8c5.3 18.4 10.7 36.6 16.1 54.6 5.4 18 10.9 36.1 16.4 54.6 0.6 2.1 1.2 3.8 1.9 5.3 0.7 1.4 1.7 2.7 3 3.7s3 1.8 5.1 2.3 4.7 0.7 8 0.7c6.1 0 10.2-1.1 12.4-3.3s3.8-5.1 4.7-8.7L610.9 585c1.3-4.4 2.8-6.6 4.3-6.6s2.7 2.2 3.4 6.6l13.7 102.9c0.8 6.5 2.4 11.3 4.6 14.3z m145.8 1.3c3.4 0 6.7-1.2 10-3.7 3.2-2.5 4.8-6.7 4.8-12.8 0-5.9-1.5-10.1-4.6-12.7-3-2.6-6.5-3.8-10.3-3.8h-55.9v-154c0-4.6-1.7-8.1-5.1-10.7-3.4-2.6-7.9-3.8-13.4-3.8-5.1 0-9.5 1.3-13.1 3.8-3.6 2.6-5.4 6.1-5.4 10.7V683c0 5.7 1.8 10.5 5.4 14.5 3.6 4 8.5 6 14.8 6h72.8z" fill="#FFFFFF" p-id="26447"></path></svg>
|
|
23
|
+
{% if lan == 'cn' %} 保存Html {% else %} Save Html {% endif %}
|
|
24
|
+
</a>
|
|
25
|
+
<a download="report.png" onclick="screenshot('sceen-body','report.png')" class="btn">
|
|
26
|
+
<svg t="1681980127752" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11730" width="50" height="50"><path d="M957.31 368.25L903.1 732.12c-6 40.19-33.93 71.32-69.35 82.48a96.61 96.61 0 0 1-44.19 3.26L213.21 727c-39.51-6.23-70-35.53-80.55-72.54l90.55-64.06L363.29 702l193.4-234.78L847.8 681.67V394c0-56.57-44.59-102.43-99.6-102.43H177.34l6.73-45.17c8.33-55.92 59.16-94.3 113.53-85.73l576.35 90.83c54.37 8.56 91.69 60.83 83.36 116.75z" fill="#C5E3FF" p-id="11731"></path><path d="M804.86 831.57a110.71 110.71 0 0 1-17.24-1.36l-576.35-90.83c-42.89-6.76-78.46-38.74-90.62-81.47a12.5 12.5 0 0 1 4.8-13.62L216 580.22a12.5 12.5 0 0 1 15 0.43l130.45 103.9L547 459.27a12.5 12.5 0 0 1 17.06-2.12L835.3 656.93V394c0-49.59-39.07-89.93-87.1-89.93H177.34A12.5 12.5 0 0 1 165 289.71l6.73-45.17a114.5 114.5 0 0 1 45.56-76.09 109.35 109.35 0 0 1 82.29-20.14l576.35 90.83c61 9.62 103.11 68.37 93.78 131L915.46 734A115.87 115.87 0 0 1 889 792.38a112.1 112.1 0 0 1-51.45 34.14 108.3 108.3 0 0 1-32.69 5.05zM147.47 659.32c11.42 29.21 37.19 50.55 67.69 55.36l576.35 90.83a83.72 83.72 0 0 0 38.49-2.84c31.84-10 55.68-38.44 60.74-72.4l54.21-363.87c7.31-49.07-25.41-95.08-72.95-102.58L295.65 173a84.54 84.54 0 0 0-63.6 15.6 89.67 89.67 0 0 0-35.62 59.63l-4.59 30.82h556.37c61.81 0 112.1 51.56 112.1 114.93v287.69a12.5 12.5 0 0 1-19.91 10.06L558.81 484.3 372.93 709.93a12.5 12.5 0 0 1-17.44 1.83L222.77 606z" fill="#3D9FF9" p-id="11732"></path><path d="M748.21 877H165.12C103.31 877 53 825.48 53 762.11V394c0-63.37 50.29-114.93 112.1-114.93h583.11c61.81 0 112.1 51.56 112.1 114.93v368.11C860.3 825.48 810 877 748.21 877zM165.13 304c-48 0-87.1 40.34-87.1 89.93v368.18C78 811.7 117.1 852 165.12 852h583.09c48 0 87.1-40.34 87.1-89.93V394c0-49.59-39.07-89.93-87.1-89.93z" fill="#3D9FF9" p-id="11733"></path><path d="M748.21 877H165.12C103.31 877 53 825.48 53 762.11V702a12.5 12.5 0 0 1 5.28-10.2L216 580.22a12.5 12.5 0 0 1 15 0.43l130.45 103.9L547 459.27a12.5 12.5 0 0 1 17.06-2.12L855.22 671.6a12.5 12.5 0 0 1 5.09 10.06v80.44a117 117 0 0 1-15.75 58.77 114.17 114.17 0 0 1-40.07 40.64A109.94 109.94 0 0 1 748.21 877zM78 708.46v53.65C78 811.7 117.1 852 165.12 852h583.09c30.88 0 58.82-16.35 74.74-43.73a92 92 0 0 0 12.36-46.21V688l-276.5-203.7-185.88 225.63a12.5 12.5 0 0 1-17.44 1.83L222.77 606z" fill="#3D9FF9" p-id="11734"></path><path d="M847.8 681.67v80.44a104.16 104.16 0 0 1-14.05 52.49c-17.39 29.91-49.19 49.94-85.54 49.94H165.12c-55 0-99.6-45.86-99.6-102.43V702l67.14-47.5 90.55-64.06L363.29 702l193.4-234.78z" fill="#C5E3FF" p-id="11735"></path><path d="M748.21 877H165.12C103.31 877 53 825.48 53 762.11V702a12.5 12.5 0 0 1 5.28-10.2L216 580.22a12.5 12.5 0 0 1 15 0.43l130.45 103.9L547 459.27a12.5 12.5 0 0 1 17.06-2.12L855.22 671.6a12.5 12.5 0 0 1 5.09 10.06v80.44a117 117 0 0 1-15.75 58.77 114.17 114.17 0 0 1-40.07 40.64A109.94 109.94 0 0 1 748.21 877zM78 708.46v53.65C78 811.7 117.1 852 165.12 852h583.09c30.88 0 58.82-16.35 74.74-43.73a92 92 0 0 0 12.36-46.21V688l-276.5-203.7-185.88 225.63a12.5 12.5 0 0 1-17.44 1.83L222.77 606z" fill="#3D9FF9" p-id="11736"></path><path d="M226.91 418.1m-69.43 0a69.43 69.43 0 1 0 138.86 0 69.43 69.43 0 1 0-138.86 0Z" fill="#C5E3FF" p-id="11737"></path><path d="M226.91 500a81.93 81.93 0 1 1 81.93-81.93A82 82 0 0 1 226.91 500z m0-138.86a56.93 56.93 0 1 0 56.93 56.93 57 57 0 0 0-56.93-56.9z" fill="#3D9FF9" p-id="11738"></path></svg>
|
|
27
|
+
{% if lan == 'cn' %} 保存图片 {% else %} Save Image {% endif %}
|
|
28
|
+
</a>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
{% endblock %}
|
|
32
|
+
|
|
33
|
+
{% block navbar_nav %}
|
|
34
|
+
<ul class="navbar-nav">
|
|
35
|
+
<li class="nav-item" id="apm_tab" style="margin-left: 20px;font-weight: bolder;">
|
|
36
|
+
<a class="nav-link" href="/?platform=Android&lan={{ lan }}" >
|
|
37
|
+
<span class="nav-link-icon d-md-none d-lg-inline-block">
|
|
38
|
+
<svg t="1635060342196" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="82258" width="200" height="200"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#FBD000" p-id="82259"></path><path d="M949.6 848H92.8c-4.8 0-8-3.2-8-8s3.2-8 8-8h856.8c4.8 0 8 3.2 8 8s-4 8-8 8z" fill="#074370" p-id="82260"></path><path d="M903.2 776c0 35.2-28.8 64-64 64H203.2c-35.2 0-64-28.8-64-64V293.6c0-35.2 28.8-64 64-64h636c35.2 0 64 28.8 64 64V776z" fill="#415E6D" p-id="82261"></path><path d="M839.2 797.6H203.2c-35.2 0-64-28.8-64-64V776c0 35.2 28.8 64 64 64h636c35.2 0 64-28.8 64-64v-42.4c0 35.2-28.8 64-64 64z" fill="#324D5B" p-id="82262"></path><path d="M839.2 229.6H203.2c-35.2 0-64 28.8-64 64V728h764V293.6c0-35.2-28.8-64-64-64z" fill="#EAEAEA" p-id="82263"></path><path d="M901.6 736H144c-4.8 0-8-3.2-8-8s3.2-8 8-8h757.6c4.8 0 8 3.2 8 8s-4 8-8 8z" fill="#074370" p-id="82264"></path><path d="M816 784m-24 0a24 24 0 1 0 48 0 24 24 0 1 0-48 0Z" fill="#28A5C6" p-id="82265"></path><path d="M216 784m-16 0a16 16 0 1 0 32 0 16 16 0 1 0-32 0Z" fill="#3AD0F9" p-id="82266"></path><path d="M280 784m-16 0a16 16 0 1 0 32 0 16 16 0 1 0-32 0Z" fill="#FF4848" p-id="82267"></path><path d="M344 784m-16 0a16 16 0 1 0 32 0 16 16 0 1 0-32 0Z" fill="#75B600" p-id="82268"></path><path d="M408 784m-16 0a16 16 0 1 0 32 0 16 16 0 1 0-32 0Z" fill="#FFFFFF" p-id="82269"></path><path d="M904 592h-72c-4.8 0-8-3.2-8-8s4-8 8-8h71.2c4.8 0 8 3.2 8 8s-3.2 8-7.2 8zM639.2 664c-3.2 0-6.4-2.4-8-5.6L592 523.2l-14.4 63.2c-0.8 4-4 6.4-8 6.4H391.2c-4 0-7.2-2.4-8-6.4l-21.6-119.2-17.6 73.6c-0.8 4-5.6 7.2-9.6 5.6-4-0.8-7.2-5.6-5.6-9.6L355.2 424c0.8-4 4-6.4 8-6.4s7.2 3.2 8 6.4l27.2 152h166.4L584 488.8c0.8-3.2 4-8.8 8-8.8s6.4 4.8 8 8.8l38.4 132.8 40.8-224.8c0.8-4 4-6.4 8-6.4s7.2 2.4 8 6.4L732 576h76c4.8 0 8 3.2 8 8s-3.2 8-8 8H725.6c-4 0-7.2-2.4-8-6.4l-30.4-146.4-40 218.4c-0.8 3.2-4 6.4-8 6.4 0.8 0 0.8 0 0 0zM305.6 680c-4 0-7.2-2.4-8-6.4L268 536l-15.2 50.4c-0.8 3.2-4 5.6-8 5.6H146.4c-4.8 0-8-3.2-8-8s3.2-8 8-8h92.8l22.4-74.4c0.8-3.2 4.8-5.6 8-5.6 4 0 6.4 2.4 7.2 6.4l28.8 132.8 11.2-47.2c0.8-4 5.6-7.2 9.6-5.6 4 0.8 7.2 5.6 5.6 9.6l-19.2 82.4c0 3.2-4 5.6-7.2 5.6z" fill="#074370" p-id="82270"></path><path d="M776 304h-56c-4.8 0-8-3.2-8-8s3.2-8 8-8h56c4.8 0 8 3.2 8 8s-3.2 8-8 8zM672 304H488c-4 0-8-3.2-8-8s3.2-8 8-8h184c4 0 8 3.2 8 8s-3.2 8-8 8zM424 304H224c-4.8 0-8-3.2-8-8s4-8 8-8h200c4.8 0 8 3.2 8 8s-4 8-8 8zM711.2 344H584c-4.8 0-8-3.2-8-8s3.2-8 8-8h127.2c4.8 0 8 3.2 8 8s-3.2 8-8 8zM528 344H224c-4.8 0-8-3.2-8-8s4-8 8-8h304c4.8 0 8 3.2 8 8s-4 8-8 8z" fill="#ADADAD" p-id="82271"></path><path d="M840 848H200c-40 0-72-32-72-72V296c0-40 32-72 72-72h640c40 0 72 32 72 72v480c0 40-32 72-72 72zM200 240c-31.2 0-56 24.8-56 56v480c0 31.2 24.8 56 56 56h640c31.2 0 56-24.8 56-56V296c0-31.2-24.8-56-56-56H200z" fill="#074370" p-id="82272"></path><path d="M864 553.6c-4.8 0-8-3.2-8-8v-80c0-4.8 3.2-8 8-8s8 3.2 8 8v80c0 4.8-3.2 8-8 8zM864 425.6c-4.8 0-8-3.2-8-8V312c0-22.4-17.6-40-40-40H408c-4.8 0-8-3.2-8-8s3.2-8 8-8h408c31.2 0 56 24.8 56 56v105.6c0 4.8-3.2 8-8 8zM345.6 272H224c-4.8 0-8-3.2-8-8s3.2-8 8-8h121.6c4.8 0 8 3.2 8 8s-4 8-8 8zM64 464c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z m0-48c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM656 176c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z m0-48c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM474.4 124c0-3.2-3.2-6.4-8-7.2l-15.2-2.4c-4-0.8-8.8-4.8-8.8-8.8l-2.4-15.2c-0.8-4-4-8-7.2-8s-6.4 3.2-7.2 8l-2.4 15.2c-0.8 4-4.8 8.8-8.8 8.8l-15.2 2.4c-4 0.8-8 4-8 7.2s3.2 6.4 8 7.2l15.2 2.4c4 0.8 8.8 4.8 8.8 8.8l2.4 15.2c0.8 4 4 8 7.2 8s6.4-3.2 7.2-8l2.4-16.8c0.8-4 4.8-8 8.8-8.8l14.4-0.8c5.6-1.6 8.8-4 8.8-7.2zM502.4 928c0-3.2-3.2-6.4-8-7.2l-15.2-2.4c-4-0.8-8.8-4.8-8.8-8.8l-2.4-15.2c-0.8-4-4-8-7.2-8s-6.4 3.2-7.2 8l-2.4 15.2c-0.8 4-4.8 8.8-8.8 8.8l-15.2 2.4c-4 0.8-8 4-8 7.2s3.2 6.4 8 7.2l15.2 2.4c4 0.8 8.8 4.8 8.8 8.8l2.4 15.2c0.8 4 4 8 7.2 8s6.4-3.2 7.2-8l2.4-16.8c0.8-4 4.8-8 8.8-8.8l14.4-0.8c5.6-1.6 8.8-4 8.8-7.2z" fill="#FFFFFF" p-id="82273"></path></svg>
|
|
39
|
+
</span>
|
|
40
|
+
<span class="nav-link-title strong-text">{% if lan == 'cn' %} 性能测试 {% else %} APM {% endif %}</span>
|
|
41
|
+
</a>
|
|
42
|
+
</li>
|
|
43
|
+
<li class="nav-item active" id="report_tab" style="margin-left: 20px;font-weight: bolder;">
|
|
44
|
+
<a class="nav-link" href="/report?lan={{ lan }}" >
|
|
45
|
+
<span class="nav-link-icon d-md-none d-lg-inline-block">
|
|
46
|
+
<svg t="1643364122000" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="29349" width="300" height="300"><path d="M777 806.7c0 38.7-31.1 70.3-69.7 70.3H225.9c-38.7 0-69.9-31.6-69.9-70.3V174.4c0-38.7 31.2-70.4 69.9-70.4h481.4c38.7 0 69.7 31.7 69.7 70.4v632.3z" fill="#FFFFFF" p-id="29350"></path><path d="M707.3 886H225.9c-43.5 0-78.9-35.8-78.9-79.3V174.4c0-43.5 35.4-79.4 78.9-79.4h481.4c43.5 0 79.7 35.9 79.7 79.4v632.3c0 43.5-36.2 79.3-79.7 79.3zM225.9 113c-33.7 0-59.9 27.7-59.9 61.4v632.3c0 33.7 26.2 61.3 59.9 61.3h481.4c33.7 0 60.7-27.6 60.7-61.3V174.4c0-33.7-27-61.4-60.7-61.4H225.9z" fill="#282828" p-id="29351"></path><path d="M732 763.1c0 33.3-26.1 60.9-59.4 60.9H251.7c-33.3 0-59.7-27.6-59.7-60.9V226.9c0-33.3 26.4-60.9 59.7-60.9h420.9c33.3 0 59.4 27.5 59.4 60.9v536.2z" fill="#50BCFF" p-id="29352"></path><path d="M361.8 251.9H208.6c-4.9 0-8.9-4-8.9-8.9s4-8.9 8.9-8.9h153.1c4.9 0 8.9 4 8.9 8.9s-3.9 8.9-8.8 8.9zM549.2 313H208.6c-4.9 0-8.9-4-8.9-8.9s4-8.9 8.9-8.9h340.5c4.9 0 8.9 4 8.9 8.9s-3.9 8.9-8.8 8.9zM652 448.4H208.6c-4.9 0-8.9-4-8.9-8.9s4-8.9 8.9-8.9H652c4.9 0 8.9 4 8.9 8.9s-4 8.9-8.9 8.9zM588.4 515.8H208.6c-4.9 0-8.9-4-8.9-8.9s4-8.9 8.9-8.9h379.7c4.9 0 8.9 4 8.9 8.9 0.1 4.9-3.9 8.9-8.8 8.9z" fill="#282828" p-id="29353"></path><path d="M673.3 113.3c0 19.6-15.9 35.5-35.5 35.5h-346c-19.6 0-35.5-15.9-35.5-35.5v-6.7c0-19.6 15.9-35.5 35.5-35.5h346c19.6 0 35.5 15.9 35.5 35.5v6.7z" fill="#1A6DFF" p-id="29354"></path><path d="M637.8 157.6h-346c-24.5 0-44.4-19.9-44.4-44.4v-6.7c0-24.5 19.9-44.4 44.4-44.4h346c24.5 0 44.4 19.9 44.4 44.4v6.7c0 24.5-19.9 44.4-44.4 44.4zM291.9 80c-14.7 0-26.6 11.9-26.6 26.6v6.7c0 14.7 11.9 26.6 26.6 26.6h346c14.7 0 26.6-11.9 26.6-26.6v-6.7c0-14.7-11.9-26.6-26.6-26.6h-346z" fill="#282828" p-id="29355"></path><path d="M849.7 758.4c0 106.3-86.2 192.4-192.4 192.4-106.3 0-192.4-86.2-192.4-192.4C464.8 652.1 551 566 657.3 566c106.2 0 192.4 86.1 192.4 192.4z" fill="#FFFFFF" p-id="29356"></path><path d="M657.3 959.7c-111 0-201.3-90.3-201.3-201.3s90.3-201.3 201.3-201.3 201.3 90.3 201.3 201.3-90.3 201.3-201.3 201.3z m0-384.8c-101.2 0-183.5 82.3-183.5 183.5S556.1 942 657.3 942s183.6-82.3 183.6-183.6c-0.1-101.2-82.4-183.5-183.6-183.5z" fill="#282828" p-id="29357"></path><path d="M657.3 553.6v204.9h203.6c-0.2-112.7-91.2-204-203.6-204.9z" fill="#1A6DFF" p-id="29358"></path><path d="M860.9 767.3H657.3c-4.9 0-8.9-4-8.9-8.9V553.6c0-2.4 0.9-4.6 2.6-6.3 1.7-1.7 3.6-2.4 6.3-2.6 116.9 0.9 212.2 96.8 212.4 213.7 0 2.4-0.9 4.6-2.6 6.3-1.6 1.7-3.9 2.6-6.2 2.6z m-194.8-17.8h185.6C847 649.3 766.2 568 666.1 562.7v186.8z" fill="#282828" p-id="29359"></path><path d="M794.1 903.7c-2.3 0-4.6-0.9-6.3-2.6L652.1 764.7c-3.5-3.5-3.4-9.1 0-12.6 3.5-3.5 9.1-3.4 12.6 0l135.7 136.5c3.5 3.5 3.4 9.1 0 12.6-1.8 1.7-4 2.5-6.3 2.5z" fill="#282828" p-id="29360"></path></svg>
|
|
47
|
+
</span>
|
|
48
|
+
<span class="nav-link-title strong-text">{% if lan == 'cn' %} 报告管理 {% else %} Report {% endif %}</span>
|
|
49
|
+
</a>
|
|
50
|
+
</li>
|
|
51
|
+
</ul>
|
|
52
|
+
{% endblock %}
|
|
53
|
+
|
|
54
|
+
{% block page_body %}
|
|
55
|
+
<div class="col-12 mb-3">
|
|
56
|
+
<div class="row row-cards">
|
|
57
|
+
<div class="col-sm-6 col-lg-2">
|
|
58
|
+
<div class="card card-sm">
|
|
59
|
+
<div class="card-body">
|
|
60
|
+
<div class="row align-items-center">
|
|
61
|
+
<div class="col-auto">
|
|
62
|
+
<span class="bg-dark text-white avatar">
|
|
63
|
+
CPU
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="col">
|
|
67
|
+
<div class="font-weight-medium">
|
|
68
|
+
APP
|
|
69
|
+
</div>
|
|
70
|
+
<div class="text-muted">
|
|
71
|
+
Avg: {{ apm_data.cpuAppRate }}
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
<div class="col-sm-6 col-lg-2">
|
|
79
|
+
<div class="card card-sm">
|
|
80
|
+
<div class="card-body">
|
|
81
|
+
<div class="row align-items-center">
|
|
82
|
+
<div class="col-auto">
|
|
83
|
+
<span class="bg-dark text-white avatar">
|
|
84
|
+
CPU
|
|
85
|
+
</span>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="col">
|
|
88
|
+
<div class="font-weight-medium">
|
|
89
|
+
{% if lan == 'cn' %} 整机 {% else %} Total {% endif %}
|
|
90
|
+
</div>
|
|
91
|
+
<div class="text-muted">
|
|
92
|
+
Avg: {{ apm_data.cpuSystemRate }}
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="col-sm-6 col-lg-2">
|
|
100
|
+
<div class="card card-sm">
|
|
101
|
+
<div class="card-body">
|
|
102
|
+
<div class="row align-items-center">
|
|
103
|
+
<div class="col-auto">
|
|
104
|
+
<span class="bg-yellow text-white avatar">
|
|
105
|
+
{% if lan == 'cn' %} 内存 {% else %} MEM {% endif %}
|
|
106
|
+
</span>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="col">
|
|
109
|
+
<div class="font-weight-medium">
|
|
110
|
+
{% if lan == 'cn' %} 物理内存 {% else %} Total {% endif %}
|
|
111
|
+
</div>
|
|
112
|
+
<div class="text-muted">
|
|
113
|
+
Avg: {{ apm_data.totalPassAvg }}
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
{% if platform == 'Android' %}
|
|
121
|
+
<div class="col-sm-6 col-lg-2">
|
|
122
|
+
<div class="card card-sm">
|
|
123
|
+
<div class="card-body">
|
|
124
|
+
<div class="row align-items-center">
|
|
125
|
+
<div class="col-auto">
|
|
126
|
+
<span class="bg-yellow text-white avatar">
|
|
127
|
+
{% if lan == 'cn' %} 内存 {% else %} MEM {% endif %}
|
|
128
|
+
</span>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="col">
|
|
131
|
+
<div class="font-weight-medium">
|
|
132
|
+
{% if lan == 'cn' %} 交换内存 {% else %} Swap {% endif %}
|
|
133
|
+
</div>
|
|
134
|
+
<div class="text-muted">
|
|
135
|
+
Avg: {{ apm_data.swapPassAvg }}
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
{% endif %}
|
|
143
|
+
<div class="col-sm-6 col-lg-2">
|
|
144
|
+
<div class="card card-sm">
|
|
145
|
+
<div class="card-body">
|
|
146
|
+
<div class="row align-items-center">
|
|
147
|
+
<div class="col-auto">
|
|
148
|
+
<span class="bg-pink text-white avatar">
|
|
149
|
+
FPS
|
|
150
|
+
</span>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="col">
|
|
153
|
+
<div class="font-weight-medium">
|
|
154
|
+
{% if lan == 'cn' %} 流畅度 {% else %} FPS {% endif %}
|
|
155
|
+
</div>
|
|
156
|
+
<div class="text-muted">
|
|
157
|
+
Avg: {{ apm_data.fps }}
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
{% if platform == 'Android' %}
|
|
165
|
+
<div class="col-sm-6 col-lg-2">
|
|
166
|
+
<div class="card card-sm">
|
|
167
|
+
<div class="card-body">
|
|
168
|
+
<div class="row align-items-center">
|
|
169
|
+
<div class="col-auto">
|
|
170
|
+
<span class="bg-pink text-white avatar">
|
|
171
|
+
Jank
|
|
172
|
+
</span>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="col">
|
|
175
|
+
<div class="font-weight-medium">
|
|
176
|
+
{% if lan == 'cn' %} 卡顿 {% else %} Jank {% endif %}
|
|
177
|
+
</div>
|
|
178
|
+
<div class="text-muted">
|
|
179
|
+
All: {{ apm_data.jank }}
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
{% endif %}
|
|
187
|
+
{% if platform == 'Android' %}
|
|
188
|
+
<div class="col-sm-6 col-lg-2">
|
|
189
|
+
<div class="card card-sm">
|
|
190
|
+
<div class="card-body">
|
|
191
|
+
<div class="row align-items-center">
|
|
192
|
+
<div class="col-auto">
|
|
193
|
+
<span class="bg-green text-white avatar">
|
|
194
|
+
{% if lan == 'cn' %} 电池 {% else %} BAT {% endif %}
|
|
195
|
+
</span>
|
|
196
|
+
</div>
|
|
197
|
+
<div class="col">
|
|
198
|
+
<div class="font-weight-medium">
|
|
199
|
+
{% if lan == 'cn' %} 电量 {% else %} Level {% endif %}
|
|
200
|
+
</div>
|
|
201
|
+
<div class="text-muted">
|
|
202
|
+
Final: {{ apm_data.batteryLevel }}
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
<div class="col-sm-6 col-lg-2">
|
|
210
|
+
<div class="card card-sm">
|
|
211
|
+
<div class="card-body">
|
|
212
|
+
<div class="row align-items-center">
|
|
213
|
+
<div class="col-auto">
|
|
214
|
+
<span class="bg-green text-white avatar">
|
|
215
|
+
{% if lan == 'cn' %} 电池 {% else %} BAT {% endif %}
|
|
216
|
+
</span>
|
|
217
|
+
</div>
|
|
218
|
+
<div class="col">
|
|
219
|
+
<div class="font-weight-medium">
|
|
220
|
+
{% if lan == 'cn' %} 温度 {% else %} Temperature {% endif %}
|
|
221
|
+
</div>
|
|
222
|
+
<div class="text-muted">
|
|
223
|
+
Final: {{ apm_data.batteryTeml }}
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
{% else %}
|
|
231
|
+
<div class="col-sm-6 col-lg-2">
|
|
232
|
+
<div class="card card-sm">
|
|
233
|
+
<div class="card-body">
|
|
234
|
+
<div class="row align-items-center">
|
|
235
|
+
<div class="col-auto">
|
|
236
|
+
<span class="bg-green text-white avatar">
|
|
237
|
+
{% if lan == 'cn' %} 电池 {% else %} BAT {% endif %}
|
|
238
|
+
</span>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="col">
|
|
241
|
+
<div class="font-weight-medium">
|
|
242
|
+
{% if lan == 'cn' %} 温度 {% else %} Temperature {% endif %}
|
|
243
|
+
</div>
|
|
244
|
+
<div class="text-muted">
|
|
245
|
+
Final: {{ apm_data.batteryTeml }}°C
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
<div class="col-sm-6 col-lg-2">
|
|
253
|
+
<div class="card card-sm">
|
|
254
|
+
<div class="card-body">
|
|
255
|
+
<div class="row align-items-center">
|
|
256
|
+
<div class="col-auto">
|
|
257
|
+
<span class="bg-green text-white avatar">
|
|
258
|
+
{% if lan == 'cn' %} 电池 {% else %} BAT {% endif %}
|
|
259
|
+
</span>
|
|
260
|
+
</div>
|
|
261
|
+
<div class="col">
|
|
262
|
+
<div class="font-weight-medium">
|
|
263
|
+
{% if lan == 'cn' %} 电流 {% else %} Current {% endif %}
|
|
264
|
+
</div>
|
|
265
|
+
<div class="text-muted">
|
|
266
|
+
Avg: {{ apm_data.batteryCurrent }}mA
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
<div class="col-sm-6 col-lg-2">
|
|
274
|
+
<div class="card card-sm">
|
|
275
|
+
<div class="card-body">
|
|
276
|
+
<div class="row align-items-center">
|
|
277
|
+
<div class="col-auto">
|
|
278
|
+
<span class="bg-green text-white avatar">
|
|
279
|
+
{% if lan == 'cn' %} 电池 {% else %} BAT {% endif %}
|
|
280
|
+
</span>
|
|
281
|
+
</div>
|
|
282
|
+
<div class="col">
|
|
283
|
+
<div class="font-weight-medium">
|
|
284
|
+
{% if lan == 'cn' %} 电压 {% else %} Voltage {% endif %}
|
|
285
|
+
</div>
|
|
286
|
+
<div class="text-muted">
|
|
287
|
+
Avg: {{ apm_data.batteryVoltage }}mW
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
</div>
|
|
294
|
+
<div class="col-sm-6 col-lg-2">
|
|
295
|
+
<div class="card card-sm">
|
|
296
|
+
<div class="card-body">
|
|
297
|
+
<div class="row align-items-center">
|
|
298
|
+
<div class="col-auto">
|
|
299
|
+
<span class="bg-green text-white avatar">
|
|
300
|
+
{% if lan == 'cn' %} 电池 {% else %} BAT {% endif %}
|
|
301
|
+
</span>
|
|
302
|
+
</div>
|
|
303
|
+
<div class="col">
|
|
304
|
+
<div class="font-weight-medium">
|
|
305
|
+
{% if lan == 'cn' %} 功耗 {% else %} Power {% endif %}
|
|
306
|
+
</div>
|
|
307
|
+
<div class="text-muted">
|
|
308
|
+
Avg: {{ apm_data.batteryPower }}mV
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
</div>
|
|
314
|
+
</div>
|
|
315
|
+
{% endif %}
|
|
316
|
+
<div class="col-sm-6 col-lg-2">
|
|
317
|
+
<div class="card card-sm">
|
|
318
|
+
<div class="card-body">
|
|
319
|
+
<div class="row align-items-center">
|
|
320
|
+
<div class="col-auto">
|
|
321
|
+
<span class="bg-blue text-white avatar">
|
|
322
|
+
{% if lan == 'cn' %} 流量 {% else %} NET {% endif %}
|
|
323
|
+
</span>
|
|
324
|
+
</div>
|
|
325
|
+
<div class="col">
|
|
326
|
+
<div class="font-weight-medium">
|
|
327
|
+
{% if lan == 'cn' %} 上行 {% else %} Send {% endif %}
|
|
328
|
+
</div>
|
|
329
|
+
<div class="text-muted">
|
|
330
|
+
<label style="color: red;"><strong>+</strong></label>{{ apm_data.flow_send }}
|
|
331
|
+
</div>
|
|
332
|
+
</div>
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
<div class="col-sm-6 col-lg-2">
|
|
338
|
+
<div class="card card-sm">
|
|
339
|
+
<div class="card-body">
|
|
340
|
+
<div class="row align-items-center">
|
|
341
|
+
<div class="col-auto">
|
|
342
|
+
<span class="bg-blue text-white avatar">
|
|
343
|
+
{% if lan == 'cn' %} 流量 {% else %} NET {% endif %}
|
|
344
|
+
</span>
|
|
345
|
+
</div>
|
|
346
|
+
<div class="col">
|
|
347
|
+
<div class="font-weight-medium">
|
|
348
|
+
{% if lan == 'cn' %} 下行 {% else %} Recieve {% endif %}
|
|
349
|
+
</div>
|
|
350
|
+
<div class="text-muted">
|
|
351
|
+
<label style="color: red;"><strong>+</strong></label>{{ apm_data.flow_recv }}
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
</div>
|
|
358
|
+
<div class="col-sm-6 col-lg-2">
|
|
359
|
+
<div class="card card-sm">
|
|
360
|
+
<div class="card-body">
|
|
361
|
+
<div class="row align-items-center">
|
|
362
|
+
<div class="col-auto">
|
|
363
|
+
<span class="bg-purple text-white avatar">
|
|
364
|
+
GPU
|
|
365
|
+
</span>
|
|
366
|
+
</div>
|
|
367
|
+
<div class="col">
|
|
368
|
+
<div class="font-weight-medium">
|
|
369
|
+
GPU
|
|
370
|
+
</div>
|
|
371
|
+
<div class="text-muted">
|
|
372
|
+
Avg: {{ apm_data.gpu }}%
|
|
373
|
+
</div>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
</div>
|
|
379
|
+
</div>
|
|
380
|
+
</div>
|
|
381
|
+
{% if platform == 'Android' %}
|
|
382
|
+
<div class="form-selectgroup mb-3">
|
|
383
|
+
<label class="form-selectgroup-item">
|
|
384
|
+
<input type="radio" name="icons" value="chart" class="form-selectgroup-input" checked onclick="chartsClick()">
|
|
385
|
+
<span class="form-selectgroup-label">
|
|
386
|
+
<svg t="1709092052830" class="icon me-2" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="25403" width="200" height="200"><path d="M512 256a42.666667 42.666667 0 0 0-42.666667 42.666667v426.666666a42.666667 42.666667 0 0 0 85.333334 0V298.666667a42.666667 42.666667 0 0 0-42.666667-42.666667z m-213.333333 256a42.666667 42.666667 0 0 0-42.666667 42.666667v170.666666a42.666667 42.666667 0 0 0 85.333333 0v-170.666666a42.666667 42.666667 0 0 0-42.666666-42.666667z m426.666666-85.333333a42.666667 42.666667 0 0 0-42.666666 42.666666v256a42.666667 42.666667 0 0 0 85.333333 0v-256a42.666667 42.666667 0 0 0-42.666667-42.666666z m85.333334-341.333334H213.333333a128 128 0 0 0-128 128v597.333334a128 128 0 0 0 128 128h597.333334a128 128 0 0 0 128-128V213.333333a128 128 0 0 0-128-128z m42.666666 725.333334a42.666667 42.666667 0 0 1-42.666666 42.666666H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h597.333334a42.666667 42.666667 0 0 1 42.666666 42.666666z" fill="#0070FF" p-id="25404"></path></svg>
|
|
387
|
+
{% if lan == 'cn' %} 图表 {% else %} Charts {% endif %}
|
|
388
|
+
</span>
|
|
389
|
+
</label>
|
|
390
|
+
<label class="form-selectgroup-item">
|
|
391
|
+
<input type="radio" name="icons" value="disk" class="form-selectgroup-input" onclick="diskClick()">
|
|
392
|
+
<span class="form-selectgroup-label">
|
|
393
|
+
<svg t="1709092139564" class="icon me-2" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="34466" width="200" height="200"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity=".01" p-id="34467"></path><path d="M938.666667 618.666667H85.333333V896h853.333334v-277.333333z" fill="#2F88FF" p-id="34468"></path><path d="M981.333333 938.666667H42.666667v-362.666667h938.666666V938.666667zM128 853.333333h768v-192H128V853.333333z" fill="#333333" p-id="34469"></path><path d="M757.333333 810.666667a53.333333 53.333333 0 1 0 0-106.666667 53.333333 53.333333 0 0 0 0 106.666667z" fill="#FFFFFF" p-id="34470"></path><path d="M127.104 627.413333l-83.541333-17.493333L158.165333 64h708.949334l113.322666 546.005333-83.541333 17.322667L797.696 149.333333H227.456L127.104 627.413333z" fill="#333333" p-id="34471"></path></svg>
|
|
394
|
+
{% if lan == 'cn' %} 磁盘使用分析 {% else %} Disk Analysis {% endif %}
|
|
395
|
+
</span>
|
|
396
|
+
</label>
|
|
397
|
+
{% if apm_data.thermal_flag %}
|
|
398
|
+
<label class="form-selectgroup-item">
|
|
399
|
+
<input type="radio" name="icons" value="thermal" class="form-selectgroup-input" onclick="thermalClick()">
|
|
400
|
+
<span class="form-selectgroup-label">
|
|
401
|
+
<svg t="1717146743461" class="icon me-2" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10995" width="256" height="256"><path d="M512 0c282.7776 0 512 229.2224 512 512s-229.2224 512-512 512S0 794.7776 0 512 229.2224 0 512 0z m-3.9936 204.8c-30.9248 0-60.2624 9.3184-82.5856 26.2144-23.936 18.1248-37.632 43.8272-37.632 70.528v236.16A174.6688 174.6688 0 0 0 332.8 665.1392a174.08 174.08 0 0 0 51.3024 123.904 174.0544 174.0544 0 0 0 123.904 51.3024 174.0544 174.0544 0 0 0 123.904-51.3024 174.08 174.08 0 0 0 51.3024-123.904 174.6688 174.6688 0 0 0-54.9888-127.4368V301.568c0-26.7008-13.7216-52.4032-37.632-70.528C568.2176 214.1184 538.9056 204.8 507.9808 204.8z m0 47.104c39.6288 0 73.1136 22.7328 73.1136 49.6384v257.8432l8.5248 7.0656a127.7952 127.7952 0 0 1 46.464 98.688 128.256 128.256 0 0 1-128.1024 128.1024 128.256 128.256 0 0 1-128.1024-128.1024c0-38.272 16.9216-74.24 46.4384-98.688l8.5248-7.0656V301.5424c0-26.9056 33.4848-49.6384 73.1392-49.6384z m0 87.1168c-19.968 0-36.1472 12.2624-36.1472 27.3664v216.9856a89.3952 89.3952 0 1 0 72.2688 0v-216.9856c0-15.104-16.1792-27.3664-36.1216-27.3664z m171.5968 142.5152h-28.2624a11.5968 11.5968 0 0 0 0 23.2192h28.2624a11.5968 11.5968 0 1 0 0-23.2192z m0-35.6096h-28.2624a11.5968 11.5968 0 0 0 0 23.1936h28.2624a11.5968 11.5968 0 1 0 0-23.1936z m0-35.6352h-28.2624a11.5968 11.5968 0 0 0 0 23.2192h28.2624a11.5968 11.5968 0 1 0 0-23.2192z m0-35.6352h-28.2624a11.5968 11.5968 0 0 0 0 23.2192h28.2624a11.5968 11.5968 0 1 0 0-23.2192z m0-35.6352h-28.2624a11.5968 11.5968 0 0 0 0 23.2192h28.2624a11.5968 11.5968 0 1 0 0-23.2192z m0-35.6352h-28.2624a11.5968 11.5968 0 0 0 0 23.2192h28.2624a11.5968 11.5968 0 1 0 0-23.2192z" fill="#d4237a" p-id="10996" data-spm-anchor-id="a313x.search_index.0.i0.3b713a81JBMZXg" class="selected"></path></svg>
|
|
402
|
+
{% if lan == 'cn' %} 温度传感器 {% else %} Thermal Sensor {% endif %}
|
|
403
|
+
</span>
|
|
404
|
+
</label>
|
|
405
|
+
{% endif %}
|
|
406
|
+
</div>
|
|
407
|
+
{% endif %}
|
|
408
|
+
<div class="col-12" id="card-chart">
|
|
409
|
+
<div class="card cpu-card">
|
|
410
|
+
<div class="card-header">
|
|
411
|
+
<div class='card-title'>{% if lan == 'cn' %} CPU使用率 (%) {% else %} CPU Usage (%) {% endif %}</div>
|
|
412
|
+
<div class="card-actions btn-actions">
|
|
413
|
+
<a class="btn" onclick="initCpuCharts()">
|
|
414
|
+
<span class="spinner-border spinner-border-sm me-2" id="cpu_spinner" role="status" style="display: none;"></span>
|
|
415
|
+
<svg id="cpu_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
416
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
417
|
+
</a>
|
|
418
|
+
|
|
419
|
+
<a class="btn" id="cpu_png" style="margin-left: 10px;" onclick="screenshot('cpu-card','cpu.png')">
|
|
420
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
421
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
422
|
+
</a>
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
<div class="card-body">
|
|
426
|
+
<div id="chart-cpu"></div>
|
|
427
|
+
</div>
|
|
428
|
+
</div>
|
|
429
|
+
<div class="card mem-card mt-3">
|
|
430
|
+
<div class="card-header">
|
|
431
|
+
<div class='card-title'>{% if lan == 'cn' %} 内存 (MB) {% else %} Memory Usage (MB) {% endif %}</div>
|
|
432
|
+
<div class="card-actions btn-actions">
|
|
433
|
+
<a class="btn" onclick="initMemoryCharts()">
|
|
434
|
+
<span class="spinner-border spinner-border-sm me-2" id="mem_spinner" role="status" style="display: none;"></span>
|
|
435
|
+
<svg id="mem_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
436
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
437
|
+
</a>
|
|
438
|
+
|
|
439
|
+
<a class="btn" id="mem_png" style="margin-left: 10px;" onclick="screenshot('mem-card','mem.png')">
|
|
440
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
441
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
442
|
+
</a>
|
|
443
|
+
</div>
|
|
444
|
+
</div>
|
|
445
|
+
<div class="card-body">
|
|
446
|
+
<div id="chart-mem"></div>
|
|
447
|
+
</div>
|
|
448
|
+
</div>
|
|
449
|
+
{% if platform == 'Android' and apm_data.mem_detail_flag == True %}
|
|
450
|
+
<div class="card mem-detail-card mt-3">
|
|
451
|
+
<div class="card-header">
|
|
452
|
+
<div class='card-title'>{% if lan == 'cn' %} 内存细化参数 (MB) {% else %} Memory Detail (MB) {% endif %}</div>
|
|
453
|
+
<div class="card-actions btn-actions">
|
|
454
|
+
<a class="btn" onclick="initMemoryDetailCharts()">
|
|
455
|
+
<span class="spinner-border spinner-border-sm me-2" id="mem_detail_spinner" role="status" style="display: none;"></span>
|
|
456
|
+
<svg id="mem_detail_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
457
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
458
|
+
</a>
|
|
459
|
+
<a class="btn" id="mem_detail_png" style="margin-left: 10px;" onclick="screenshot('mem-detail-card','mem_detail.png')">
|
|
460
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
461
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
462
|
+
</a>
|
|
463
|
+
</div>
|
|
464
|
+
</div>
|
|
465
|
+
<div class="card-body">
|
|
466
|
+
<div id="chart-mem-detail"></div>
|
|
467
|
+
</div>
|
|
468
|
+
</div>
|
|
469
|
+
{% endif %}
|
|
470
|
+
{% if platform == 'Android' and apm_data.cpu_core_flag == True %}
|
|
471
|
+
<div class="card cpu-core-card mt-3">
|
|
472
|
+
<div class="card-header">
|
|
473
|
+
<div class='card-title'>{% if lan == 'cn' %} CPU核心使用率 (%) {% else %} CPU Core Usage (%) {% endif %}</div>
|
|
474
|
+
<div class="card-actions btn-actions">
|
|
475
|
+
<a class="btn" onclick="initMemoryDetailCharts()">
|
|
476
|
+
<span class="spinner-border spinner-border-sm me-2" id="cpu_core_spinner" role="status" style="display: none;"></span>
|
|
477
|
+
<svg id="cpu_core_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
478
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
479
|
+
</a>
|
|
480
|
+
<a class="btn" id="cpu_core_png" style="margin-left: 10px;" onclick="screenshot('cpu-core-card','cpu_core.png')">
|
|
481
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
482
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
483
|
+
</a>
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
<div class="card-body">
|
|
487
|
+
<div id="chart-cpu-core"></div>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
{% endif %}
|
|
491
|
+
<div class="card fps-card mt-3">
|
|
492
|
+
<div class="card-header">
|
|
493
|
+
<div class='card-title'>
|
|
494
|
+
{% if platform == 'Android' %}
|
|
495
|
+
FPS(HZ) & Jank(Times)
|
|
496
|
+
{% else %}
|
|
497
|
+
FPS (HZ)
|
|
498
|
+
{% endif %}
|
|
499
|
+
</div>
|
|
500
|
+
<div class="card-actions btn-actions">
|
|
501
|
+
<a class="btn" onclick="initFpsCharts()">
|
|
502
|
+
<span class="spinner-border spinner-border-sm me-2" id="fps_spinner" role="status" style="display: none;"></span>
|
|
503
|
+
<svg id="fps_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
504
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
505
|
+
</a>
|
|
506
|
+
<a class="btn" id="fps_png" style="margin-left: 10px;" onclick="screenshot('fps-card','fps.png')">
|
|
507
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
508
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
509
|
+
</a>
|
|
510
|
+
</div>
|
|
511
|
+
</div>
|
|
512
|
+
<div class="card-body">
|
|
513
|
+
<div id="chart-fps"></div>
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
516
|
+
<div class="card battery-card mt-3">
|
|
517
|
+
<div class="card-header">
|
|
518
|
+
<div class='card-title'>{% if lan == 'cn' %} 电池 {% else %} Battery {% endif %}</div>
|
|
519
|
+
<div class="card-actions btn-actions">
|
|
520
|
+
<a class="btn" onclick="initBatteryCharts()">
|
|
521
|
+
<span class="spinner-border spinner-border-sm me-2" id="battery_spinner" role="status" style="display: none;"></span>
|
|
522
|
+
<svg id="battery_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
523
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
524
|
+
</a>
|
|
525
|
+
<a class="btn" id="battery_png" style="margin-left: 10px;" onclick="screenshot('battery-card','battery.png')">
|
|
526
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
527
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
528
|
+
</a>
|
|
529
|
+
</div>
|
|
530
|
+
</div>
|
|
531
|
+
<div class="card-body">
|
|
532
|
+
<div id="chart-battery"></div>
|
|
533
|
+
</div>
|
|
534
|
+
</div>
|
|
535
|
+
<div class="card networkdata-card mt-3">
|
|
536
|
+
<div class="card-header">
|
|
537
|
+
<div class='card-title'>{% if lan == 'cn' %} 流量 (KB) {% else %} Network Usage (KB) {% endif %}</div>
|
|
538
|
+
<div class="card-actions btn-actions">
|
|
539
|
+
<a class="btn" onclick="initNetworkCharts()">
|
|
540
|
+
<span class="spinner-border spinner-border-sm me-2" id="networkdata_spinner" role="status" style="display: none;"></span>
|
|
541
|
+
<svg id="networkdata_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
542
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
543
|
+
</a>
|
|
544
|
+
<a class="btn" id="networkdata_png" style="margin-left: 10px;" onclick="screenshot('networkdata-card','networkdata.png')">
|
|
545
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
546
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
547
|
+
</a>
|
|
548
|
+
</div>
|
|
549
|
+
</div>
|
|
550
|
+
<div class="card-body">
|
|
551
|
+
<div id="chart-networkdata"></div>
|
|
552
|
+
</div>
|
|
553
|
+
</div>
|
|
554
|
+
<div class="card gpu-card mt-3">
|
|
555
|
+
<div class="card-header">
|
|
556
|
+
<div class='card-title'>{% if lan == 'cn' %} GPU使用率 (%) {% else %} GPU Usage (%) {% endif %}</div>
|
|
557
|
+
<div class="card-actions btn-actions">
|
|
558
|
+
<a class="btn" onclick="initGpuCharts()">
|
|
559
|
+
<span class="spinner-border spinner-border-sm me-2" id="gpu_spinner" role="status" style="display: none;"></span>
|
|
560
|
+
<svg id="gpu_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
561
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
562
|
+
</a>
|
|
563
|
+
<a class="btn" id="gpu_png" style="margin-left: 10px;" onclick="screenshot('gpu-card','gpu.png')">
|
|
564
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
565
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
566
|
+
</a>
|
|
567
|
+
</div>
|
|
568
|
+
</div>
|
|
569
|
+
<div class="card-body">
|
|
570
|
+
<div id="chart-gpu"></div>
|
|
571
|
+
</div>
|
|
572
|
+
</div>
|
|
573
|
+
{% if apm_data.disk_flag == True %}
|
|
574
|
+
<div class="card disk-card mt-3">
|
|
575
|
+
<div class="card-header">
|
|
576
|
+
<div class='card-title'>{% if lan == 'cn' %} 磁盘 (KB) {% else %} Disk Usage (KB) {% endif %}</div>
|
|
577
|
+
<div class="card-actions btn-actions">
|
|
578
|
+
<a class="btn" onclick="initDiskCharts()">
|
|
579
|
+
<span class="spinner-border spinner-border-sm me-2" id="disk_spinner" role="status" style="display: none;"></span>
|
|
580
|
+
<svg id="disk_refresh_logo" xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" /><path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" /></svg>
|
|
581
|
+
{% if lan == 'cn' %} 刷新 {% else %} Refresh {% endif %}
|
|
582
|
+
</a>
|
|
583
|
+
<a class="btn" id="disk_png" style="margin-left: 10px;" onclick="screenshot('disk-card','disk.png')">
|
|
584
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
585
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
586
|
+
</a>
|
|
587
|
+
</div>
|
|
588
|
+
</div>
|
|
589
|
+
<div class="card-body">
|
|
590
|
+
<div id="chart-disk"></div>
|
|
591
|
+
</div>
|
|
592
|
+
</div>
|
|
593
|
+
{% endif %}
|
|
594
|
+
</div>
|
|
595
|
+
{% if platform == 'Android'%}
|
|
596
|
+
<!-- Disk Usage -->
|
|
597
|
+
<div class="row row-deck row-cards card-disk mb-3">
|
|
598
|
+
<div class="col-lg-6">
|
|
599
|
+
<div class="card">
|
|
600
|
+
<div class="card-body">
|
|
601
|
+
<p class="mb-3">Using Storage (Initial Value)</p>
|
|
602
|
+
<!-- <div class="progress progress-separated mb-3">
|
|
603
|
+
<div class="progress-bar bg-red" role="progressbar" style="width: 44%" aria-label="used"></div>
|
|
604
|
+
<div class="progress-bar bg-success" role="progressbar" style="width: 56%" aria-label="free"></div>
|
|
605
|
+
</div> -->
|
|
606
|
+
<div class="row">
|
|
607
|
+
<div class="col-auto d-flex align-items-center pe-2">
|
|
608
|
+
<span class="legend me-2 bg-primary"></span>
|
|
609
|
+
<span>Size</span>
|
|
610
|
+
<span class="d-none d-md-inline d-lg-none d-xxl-inline ms-2 text-secondary">{{ sum_init_disk.sum_size }}G</span>
|
|
611
|
+
</div>
|
|
612
|
+
<div class="col-auto d-flex align-items-center px-2">
|
|
613
|
+
<span class="legend me-2 bg-red"></span>
|
|
614
|
+
<span>Used</span>
|
|
615
|
+
<span class="d-none d-md-inline d-lg-none d-xxl-inline ms-2 text-secondary">{{ sum_init_disk.sum_used }}MB</span>
|
|
616
|
+
</div>
|
|
617
|
+
<div class="col-auto d-flex align-items-center px-2">
|
|
618
|
+
<span class="legend me-2 bg-success"></span>
|
|
619
|
+
<span>Free</span>
|
|
620
|
+
<span class="d-none d-md-inline d-lg-none d-xxl-inline ms-2 text-secondary">{{ sum_init_disk.sum_free }}MB</span>
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
</div>
|
|
624
|
+
</div>
|
|
625
|
+
</div>
|
|
626
|
+
<div class="col-lg-6">
|
|
627
|
+
<div class="card">
|
|
628
|
+
<div class="card-body">
|
|
629
|
+
<p class="mb-3">Using Storage (Current Value)</p>
|
|
630
|
+
<div class="row">
|
|
631
|
+
<div class="col-auto d-flex align-items-center pe-2">
|
|
632
|
+
<span class="legend me-2 bg-primary"></span>
|
|
633
|
+
<span>Size</span>
|
|
634
|
+
<span class="d-none d-md-inline d-lg-none d-xxl-inline ms-2 text-secondary">{{ sum_current_disk.sum_size }}G</span>
|
|
635
|
+
</div>
|
|
636
|
+
<div class="col-auto d-flex align-items-center px-2">
|
|
637
|
+
<span class="legend me-2 bg-red"></span>
|
|
638
|
+
<span>Used</span>
|
|
639
|
+
<span class="d-none d-md-inline d-lg-none d-xxl-inline ms-2 text-secondary">{{ sum_current_disk.sum_used }}MB</span>
|
|
640
|
+
</div>
|
|
641
|
+
<div class="col-auto d-flex align-items-center px-2">
|
|
642
|
+
<span class="legend me-2 bg-success"></span>
|
|
643
|
+
<span>Free</span>
|
|
644
|
+
<span class="d-none d-md-inline d-lg-none d-xxl-inline ms-2 text-secondary">{{ sum_current_disk.sum_free }}MB</span>
|
|
645
|
+
</div>
|
|
646
|
+
</div>
|
|
647
|
+
</div>
|
|
648
|
+
</div>
|
|
649
|
+
</div>
|
|
650
|
+
</div>
|
|
651
|
+
|
|
652
|
+
<div class="card card-disk initial-disk" id="disk_inital_value_table">
|
|
653
|
+
<div class="card-header">
|
|
654
|
+
<h3 class="card-title">
|
|
655
|
+
<svg t="1709257126539" style="margin-right: 10px;" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20406" width="200" height="200"><path d="M885.3 957.3H140.7c-42.2 0-76.5-34.3-76.5-76.5V136.3c0-42.2 34.3-76.5 76.5-76.5h744.6c42.2 0 76.5 34.3 76.5 76.5v744.6c-0.1 42.1-34.3 76.4-76.5 76.4z m-744.6-851c-16.5 0-29.9 13.4-29.9 29.9v744.6c0 16.5 13.4 29.9 29.9 29.9h744.6c16.5 0 29.9-13.4 29.9-29.9V136.3c0-16.5-13.4-29.9-29.9-29.9H140.7z" fill="#2A68C9" p-id="20407"></path><path d="M938.5 315.8h-851V91.1c0-4.4 3.6-8 8-8h835c4.4 0 8 3.6 8 8v224.7z" fill="#2A68C9" p-id="20408"></path><path d="M961.7 339H64.3V136.3c0-42.2 34.3-76.5 76.5-76.5h744.6c42.2 0 76.5 34.3 76.5 76.5V339z m-850.9-46.5h804.4V136.3c0-16.5-13.4-29.9-29.9-29.9H140.7c-16.5 0-29.9 13.4-29.9 29.9v156.2z m827.7 352.3h-851c-12.9 0-23.3-10.4-23.3-23.3 0-12.8 10.4-23.3 23.3-23.3h851c12.9 0 23.3 10.4 23.3 23.3-0.1 12.9-10.5 23.3-23.3 23.3z" fill="#2A68C9" p-id="20409"></path><path d="M363.4 957.3c-12.9 0-23.3-10.4-23.3-23.3V315.8c0-12.8 10.4-23.3 23.3-23.3s23.3 10.4 23.3 23.3V934c0 12.9-10.4 23.3-23.3 23.3z m299.2 0c-12.9 0-23.3-10.4-23.3-23.3V315.8c0-12.8 10.4-23.3 23.3-23.3s23.3 10.4 23.3 23.3V934c0 12.9-10.5 23.3-23.3 23.3z" fill="#2A68C9" p-id="20410"></path></svg>
|
|
656
|
+
{% if lan == 'cn' %} 初始值 {% else %} Initial Value {% endif %}
|
|
657
|
+
</h3>
|
|
658
|
+
<div class="card-actions btn-actions">
|
|
659
|
+
<a class="btn" id="initial_disk_png" style="margin-left: 10px;" onclick="screenshot('initial-disk','initial_disk.png')">
|
|
660
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
661
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
662
|
+
</a>
|
|
663
|
+
</div>
|
|
664
|
+
</div>
|
|
665
|
+
<div class="table-responsive" style="font-size: 15px;">
|
|
666
|
+
<table id="file_table" class="table card-table table-vcenter text-nowrap datatable">
|
|
667
|
+
<thead>
|
|
668
|
+
<tr>
|
|
669
|
+
<th style="font-size: 13px;">Filesystem</th>
|
|
670
|
+
<th style="font-size: 13px;">Size(KB)</th>
|
|
671
|
+
<th style="font-size: 13px;">Used(KB)</th>
|
|
672
|
+
<th style="font-size: 13px;">Avail(KB)</th>
|
|
673
|
+
<th style="font-size: 13px;">Use(%)</th>
|
|
674
|
+
<th style="font-size: 13px;">Mounted on</th>
|
|
675
|
+
</tr>
|
|
676
|
+
</thead>
|
|
677
|
+
<tbody>
|
|
678
|
+
{% for disk in initial_disk %}
|
|
679
|
+
<tr>
|
|
680
|
+
<td>{{ disk.filesystem }}</td>
|
|
681
|
+
<td>{{ disk.blocks }}</td>
|
|
682
|
+
<td>{{ disk.used }}</td>
|
|
683
|
+
<td>{{ disk.available }}</td>
|
|
684
|
+
<td>{{ disk.use_percent }}</td>
|
|
685
|
+
<td>{{ disk.mounted }}</td>
|
|
686
|
+
</tr>
|
|
687
|
+
{% endfor %}
|
|
688
|
+
</tbody>
|
|
689
|
+
</table>
|
|
690
|
+
</div>
|
|
691
|
+
</div>
|
|
692
|
+
<div class="card mt-3 card-disk current-disk" id="disk_current_value_table">
|
|
693
|
+
<div class="card-header">
|
|
694
|
+
<h3 class="card-title">
|
|
695
|
+
<svg t="1709257126539" style="margin-right: 10px;" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20406" width="200" height="200"><path d="M885.3 957.3H140.7c-42.2 0-76.5-34.3-76.5-76.5V136.3c0-42.2 34.3-76.5 76.5-76.5h744.6c42.2 0 76.5 34.3 76.5 76.5v744.6c-0.1 42.1-34.3 76.4-76.5 76.4z m-744.6-851c-16.5 0-29.9 13.4-29.9 29.9v744.6c0 16.5 13.4 29.9 29.9 29.9h744.6c16.5 0 29.9-13.4 29.9-29.9V136.3c0-16.5-13.4-29.9-29.9-29.9H140.7z" fill="#2A68C9" p-id="20407"></path><path d="M938.5 315.8h-851V91.1c0-4.4 3.6-8 8-8h835c4.4 0 8 3.6 8 8v224.7z" fill="#2A68C9" p-id="20408"></path><path d="M961.7 339H64.3V136.3c0-42.2 34.3-76.5 76.5-76.5h744.6c42.2 0 76.5 34.3 76.5 76.5V339z m-850.9-46.5h804.4V136.3c0-16.5-13.4-29.9-29.9-29.9H140.7c-16.5 0-29.9 13.4-29.9 29.9v156.2z m827.7 352.3h-851c-12.9 0-23.3-10.4-23.3-23.3 0-12.8 10.4-23.3 23.3-23.3h851c12.9 0 23.3 10.4 23.3 23.3-0.1 12.9-10.5 23.3-23.3 23.3z" fill="#2A68C9" p-id="20409"></path><path d="M363.4 957.3c-12.9 0-23.3-10.4-23.3-23.3V315.8c0-12.8 10.4-23.3 23.3-23.3s23.3 10.4 23.3 23.3V934c0 12.9-10.4 23.3-23.3 23.3z m299.2 0c-12.9 0-23.3-10.4-23.3-23.3V315.8c0-12.8 10.4-23.3 23.3-23.3s23.3 10.4 23.3 23.3V934c0 12.9-10.5 23.3-23.3 23.3z" fill="#2A68C9" p-id="20410"></path></svg>
|
|
696
|
+
{% if lan == 'cn' %} 当前值 {% else %} Current Value {% endif %}
|
|
697
|
+
</h3>
|
|
698
|
+
<div class="card-actions btn-actions">
|
|
699
|
+
<a class="btn" id="initial_disk_png" style="margin-left: 10px;" onclick="screenshot('current-disk','current_disk.png')">
|
|
700
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
701
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
702
|
+
</a>
|
|
703
|
+
</div>
|
|
704
|
+
</div>
|
|
705
|
+
<div class="table-responsive" style="font-size: 15px;">
|
|
706
|
+
<table id="file_table" class="table card-table table-vcenter text-nowrap datatable">
|
|
707
|
+
<thead>
|
|
708
|
+
<tr>
|
|
709
|
+
<th style="font-size: 13px;">Filesystem</th>
|
|
710
|
+
<th style="font-size: 13px;">Size(KB)</th>
|
|
711
|
+
<th style="font-size: 13px;">Used(KB)</th>
|
|
712
|
+
<th style="font-size: 13px;">Avail(KB)</th>
|
|
713
|
+
<th style="font-size: 13px;">Use(%)</th>
|
|
714
|
+
<th style="font-size: 13px;">Mounted on</th>
|
|
715
|
+
</tr>
|
|
716
|
+
</thead>
|
|
717
|
+
<tbody>
|
|
718
|
+
{% for disk in current_disk %}
|
|
719
|
+
<tr>
|
|
720
|
+
<td>{{ disk.filesystem }}</td>
|
|
721
|
+
<td>{{ disk.blocks }}</td>
|
|
722
|
+
<td>{{ disk.used }}</td>
|
|
723
|
+
<td>{{ disk.available }}</td>
|
|
724
|
+
<td>{{ disk.use_percent }}</td>
|
|
725
|
+
<td>{{ disk.mounted }}</td>
|
|
726
|
+
</tr>
|
|
727
|
+
{% endfor %}
|
|
728
|
+
</tbody>
|
|
729
|
+
</table>
|
|
730
|
+
</div>
|
|
731
|
+
</div>
|
|
732
|
+
{% endif %}
|
|
733
|
+
|
|
734
|
+
{% if apm_data.thermal_flag %}
|
|
735
|
+
<div class="row row-cards">
|
|
736
|
+
<div class="col-lg-6">
|
|
737
|
+
<div class="card card-thermal initial-thermal" id="thermal_inital_value_table">
|
|
738
|
+
<div class="card-header">
|
|
739
|
+
<h3 class="card-title">
|
|
740
|
+
<svg t="1709257126539" style="margin-right: 10px;" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20406" width="200" height="200"><path d="M885.3 957.3H140.7c-42.2 0-76.5-34.3-76.5-76.5V136.3c0-42.2 34.3-76.5 76.5-76.5h744.6c42.2 0 76.5 34.3 76.5 76.5v744.6c-0.1 42.1-34.3 76.4-76.5 76.4z m-744.6-851c-16.5 0-29.9 13.4-29.9 29.9v744.6c0 16.5 13.4 29.9 29.9 29.9h744.6c16.5 0 29.9-13.4 29.9-29.9V136.3c0-16.5-13.4-29.9-29.9-29.9H140.7z" fill="#2A68C9" p-id="20407"></path><path d="M938.5 315.8h-851V91.1c0-4.4 3.6-8 8-8h835c4.4 0 8 3.6 8 8v224.7z" fill="#2A68C9" p-id="20408"></path><path d="M961.7 339H64.3V136.3c0-42.2 34.3-76.5 76.5-76.5h744.6c42.2 0 76.5 34.3 76.5 76.5V339z m-850.9-46.5h804.4V136.3c0-16.5-13.4-29.9-29.9-29.9H140.7c-16.5 0-29.9 13.4-29.9 29.9v156.2z m827.7 352.3h-851c-12.9 0-23.3-10.4-23.3-23.3 0-12.8 10.4-23.3 23.3-23.3h851c12.9 0 23.3 10.4 23.3 23.3-0.1 12.9-10.5 23.3-23.3 23.3z" fill="#2A68C9" p-id="20409"></path><path d="M363.4 957.3c-12.9 0-23.3-10.4-23.3-23.3V315.8c0-12.8 10.4-23.3 23.3-23.3s23.3 10.4 23.3 23.3V934c0 12.9-10.4 23.3-23.3 23.3z m299.2 0c-12.9 0-23.3-10.4-23.3-23.3V315.8c0-12.8 10.4-23.3 23.3-23.3s23.3 10.4 23.3 23.3V934c0 12.9-10.5 23.3-23.3 23.3z" fill="#2A68C9" p-id="20410"></path></svg>
|
|
741
|
+
{% if lan == 'cn' %} 初始值 {% else %} Initial Value {% endif %}
|
|
742
|
+
</h3>
|
|
743
|
+
<div class="card-actions btn-actions">
|
|
744
|
+
<a class="btn" id="initial_thermal_png" style="margin-left: 10px;" onclick="screenshot('initial-thermal','initial_thermal.png')">
|
|
745
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
746
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
747
|
+
</a>
|
|
748
|
+
</div>
|
|
749
|
+
</div>
|
|
750
|
+
<div class="table-responsive" style="font-size: 15px;">
|
|
751
|
+
<table class="table card-table table-vcenter text-nowrap datatable">
|
|
752
|
+
<thead>
|
|
753
|
+
<tr>
|
|
754
|
+
<th style="font-size: 13px;">Thermal Sensor</th>
|
|
755
|
+
<th style="font-size: 13px;">Themp(/1000 °C)</th>
|
|
756
|
+
</tr>
|
|
757
|
+
</thead>
|
|
758
|
+
<tbody>
|
|
759
|
+
{% for thermal in apm_data.init_thermal_temp %}
|
|
760
|
+
<tr>
|
|
761
|
+
<td>{{ thermal.type }}</td>
|
|
762
|
+
<td>{{ thermal.temp }}</td>
|
|
763
|
+
</tr>
|
|
764
|
+
{% endfor %}
|
|
765
|
+
</tbody>
|
|
766
|
+
</table>
|
|
767
|
+
</div>
|
|
768
|
+
</div>
|
|
769
|
+
</div>
|
|
770
|
+
<div class="col-lg-6">
|
|
771
|
+
<div class="card card-thermal current-thermal" id="thermal_current_value_table">
|
|
772
|
+
<div class="card-header">
|
|
773
|
+
<h3 class="card-title">
|
|
774
|
+
<svg t="1709257126539" style="margin-right: 10px;" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20406" width="200" height="200"><path d="M885.3 957.3H140.7c-42.2 0-76.5-34.3-76.5-76.5V136.3c0-42.2 34.3-76.5 76.5-76.5h744.6c42.2 0 76.5 34.3 76.5 76.5v744.6c-0.1 42.1-34.3 76.4-76.5 76.4z m-744.6-851c-16.5 0-29.9 13.4-29.9 29.9v744.6c0 16.5 13.4 29.9 29.9 29.9h744.6c16.5 0 29.9-13.4 29.9-29.9V136.3c0-16.5-13.4-29.9-29.9-29.9H140.7z" fill="#2A68C9" p-id="20407"></path><path d="M938.5 315.8h-851V91.1c0-4.4 3.6-8 8-8h835c4.4 0 8 3.6 8 8v224.7z" fill="#2A68C9" p-id="20408"></path><path d="M961.7 339H64.3V136.3c0-42.2 34.3-76.5 76.5-76.5h744.6c42.2 0 76.5 34.3 76.5 76.5V339z m-850.9-46.5h804.4V136.3c0-16.5-13.4-29.9-29.9-29.9H140.7c-16.5 0-29.9 13.4-29.9 29.9v156.2z m827.7 352.3h-851c-12.9 0-23.3-10.4-23.3-23.3 0-12.8 10.4-23.3 23.3-23.3h851c12.9 0 23.3 10.4 23.3 23.3-0.1 12.9-10.5 23.3-23.3 23.3z" fill="#2A68C9" p-id="20409"></path><path d="M363.4 957.3c-12.9 0-23.3-10.4-23.3-23.3V315.8c0-12.8 10.4-23.3 23.3-23.3s23.3 10.4 23.3 23.3V934c0 12.9-10.4 23.3-23.3 23.3z m299.2 0c-12.9 0-23.3-10.4-23.3-23.3V315.8c0-12.8 10.4-23.3 23.3-23.3s23.3 10.4 23.3 23.3V934c0 12.9-10.5 23.3-23.3 23.3z" fill="#2A68C9" p-id="20410"></path></svg>
|
|
775
|
+
{% if lan == 'cn' %} 当前值 {% else %} Current Value {% endif %}
|
|
776
|
+
</h3>
|
|
777
|
+
<div class="card-actions btn-actions">
|
|
778
|
+
<a class="btn" id="current_thermal_png" style="margin-left: 10px;" onclick="screenshot('current-thermal','current_thermal.png')">
|
|
779
|
+
<svg t="1646303797379" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5790" width="2000" height="2000"><path d="M897.856 842.56c14.464-6.72 18.624-20.48 9.28-30.848l-241.216-263.296a25.792 25.792 0 0 0-7.68-5.888c-14.016-7.296-33.6-5.184-43.776 4.8l-241.152 233.088-103.808-70.528a30.912 30.912 0 0 0-3.52-1.92c-14.08-7.36-33.664-4.992-43.776 4.864l-101.056 97.728a18.368 18.368 0 0 0-6.08 13.952c0.512 12.288 14.848 22.016 32.128 21.696h732.8a40.768 40.768 0 0 0 17.856-3.648zM259.84 399.68a78.464 78.464 0 0 0 117.504 67.84 78.272 78.272 0 0 0 0-135.744A78.208 78.208 0 0 0 259.84 399.68" p-id="5791"></path><path d="M864.832 872.256H159.232a83.84 83.84 0 0 1-83.776-83.776V235.52a83.84 83.84 0 0 1 83.776-83.776h705.536a83.84 83.84 0 0 1 83.776 83.776v552.96a83.84 83.84 0 0 1-83.712 83.776zM159.232 183.744a51.84 51.84 0 0 0-51.776 51.776v552.96a51.84 51.84 0 0 0 51.776 51.776h705.536a51.84 51.84 0 0 0 51.776-51.776V235.52a51.84 51.84 0 0 0-51.776-51.776H159.232z" p-id="5792"></path></svg>
|
|
780
|
+
{% if lan == 'cn' %} 截图 {% else %} ScreenShot {% endif %}
|
|
781
|
+
</a>
|
|
782
|
+
</div>
|
|
783
|
+
</div>
|
|
784
|
+
<div class="table-responsive" style="font-size: 15px;">
|
|
785
|
+
<table class="table card-table table-vcenter text-nowrap datatable">
|
|
786
|
+
<thead>
|
|
787
|
+
<tr>
|
|
788
|
+
<th style="font-size: 13px;">Thermal Sensor</th>
|
|
789
|
+
<th style="font-size: 13px;">Themp(/1000 °C)</th>
|
|
790
|
+
</tr>
|
|
791
|
+
</thead>
|
|
792
|
+
<tbody>
|
|
793
|
+
{% for thermal in apm_data.current_thermal_temp %}
|
|
794
|
+
<tr>
|
|
795
|
+
<td>{{ thermal.type }}</td>
|
|
796
|
+
<td>{{ thermal.temp }}</td>
|
|
797
|
+
</tr>
|
|
798
|
+
{% endfor %}
|
|
799
|
+
</tbody>
|
|
800
|
+
</table>
|
|
801
|
+
</div>
|
|
802
|
+
</div>
|
|
803
|
+
</div>
|
|
804
|
+
</div>
|
|
805
|
+
{% endif %}
|
|
806
|
+
|
|
807
|
+
<div class="modal modal-blur fade" id="modal-compare" tabindex="-1" role="dialog" aria-hidden="true">
|
|
808
|
+
<div class="modal-dialog modal-sm modal-dialog-centered" role="document">
|
|
809
|
+
<div class="modal-content">
|
|
810
|
+
<div class="modal-header">
|
|
811
|
+
<h5 class="modal-title">{% if lan == 'cn' %} 结果比对 {% else %} Compare {% endif %}</h5>
|
|
812
|
+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
813
|
+
</div>
|
|
814
|
+
<div class="modal-body">
|
|
815
|
+
<div class="row">
|
|
816
|
+
<div class="col-lg-12">
|
|
817
|
+
<div class="api_content">
|
|
818
|
+
<div class="col apiform">
|
|
819
|
+
<div class="input-group">
|
|
820
|
+
<span class="input-group-text">
|
|
821
|
+
{% if lan == 'cn' %} 场景 {% else %} Scene {% endif %}
|
|
822
|
+
</span>
|
|
823
|
+
{% if lan == 'cn' %}
|
|
824
|
+
<select class="select-scene select2-selection--single" data-placeholder="请选择一个场景">
|
|
825
|
+
<option></option>
|
|
826
|
+
{% for scene in filter_dir %}
|
|
827
|
+
<option>{{ scene }}</option>
|
|
828
|
+
{% endfor %}
|
|
829
|
+
</select>
|
|
830
|
+
{% else %}
|
|
831
|
+
<select class="select-scene select2-selection--single" data-placeholder="Please select a scene">
|
|
832
|
+
<option></option>
|
|
833
|
+
{% for scene in filter_dir %}
|
|
834
|
+
<option>{{ scene }}</option>
|
|
835
|
+
{% endfor %}
|
|
836
|
+
</select>
|
|
837
|
+
{% endif %}
|
|
838
|
+
</div>
|
|
839
|
+
</div>
|
|
840
|
+
</div>
|
|
841
|
+
</div>
|
|
842
|
+
</div>
|
|
843
|
+
</div>
|
|
844
|
+
<div class="modal-footer">
|
|
845
|
+
<a class="btn btn-link link-secondary" data-bs-dismiss="modal">Cancel</a>
|
|
846
|
+
<a onclick="compare()" class="btn ms-auto">
|
|
847
|
+
<svg t="1682562949101" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20010" width="50" height="50"><path d="M478.976 428.6976h372.8896c36.096 0 65.3312-29.2352 65.3312-65.3312V169.3696c0-36.096-29.2352-65.3312-65.3312-65.3312H478.976c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 36.0448 29.2352 65.3312 65.3312 65.3312zM533.6064 609.1776H160.7168c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 36.096 29.2352 65.3312 65.3312 65.3312h372.8896c36.096 0 65.3312-29.2352 65.3312-65.3312v-193.9968c0-36.096-29.2352-65.3312-65.3312-65.3312zM952.1152 550.5024l-76.4416-79.0016a43.4176 43.4176 0 0 0-57.856-4.096l-84.5824 65.8432a43.37664 43.37664 0 0 0-7.5776 60.928c14.7456 18.8928 41.984 22.3232 60.928 7.5776l9.3184-7.2704c-0.9728 8.2432-2.4576 16.8448-4.5568 25.6512-15.9744 65.6896-60.8256 112.5376-133.376 139.3664-22.4768 8.2944-33.9968 33.28-25.7024 55.7568 6.4512 17.5104 23.0912 28.3648 40.7552 28.3648 5.0176 0 10.0864-0.8704 15.0528-2.7136 135.5264-50.0736 184.2176-151.1424 194.816-237.1072l6.8608 7.0656a43.25888 43.25888 0 0 0 31.232 13.2096c10.8544 0 21.76-4.0448 30.1568-12.1856 17.152-16.64 17.6128-44.1344 0.9728-61.3888zM189.44 578.5088c10.752 0 21.504-3.9936 29.8496-11.8784l77.824-73.6768c17.408-16.4864 18.176-43.9808 1.6896-61.3888-16.4864-17.408-43.9808-18.176-61.3888-1.6896l-8.6016 8.1408c0.2048-8.2944 0.8192-16.9984 2.0992-25.9584 9.5232-66.9184 49.664-117.9136 119.2448-151.6032 21.6064-10.4448 30.6176-36.4032 20.1728-58.0096-10.4448-21.6064-36.4032-30.6176-58.0096-20.1728-130.048 62.976-168.7552 168.3456-170.9568 254.9248l-7.4752-6.4a43.39712 43.39712 0 1 0-56.2688 66.0992l83.712 71.2192a42.98752 42.98752 0 0 0 28.1088 10.3936z" fill="#2595E8" p-id="20011"></path><path d="M883.2 112.0256a65.28 65.28 0 0 0-31.2832-7.9872H478.976c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 36.096 29.2352 65.3312 65.3312 65.3312h372.8896a65.024 65.024 0 0 0 40.704-14.2848c9.216-42.7008 14.1824-86.9376 14.1824-132.4032 0.0512-58.9824-8.2944-115.9168-23.552-169.984zM657.92 759.5008c-17.8176 6.5536-28.672 23.6032-28.3136 41.5744 33.28-22.3232 64.3072-47.7696 92.6208-75.8784-18.2272 13.6704-39.6288 25.1392-64.3072 34.304zM771.7376 669.6448c46.08-58.112 82.0736-124.5696 105.2672-196.8128l-1.28-1.3312a43.4176 43.4176 0 0 0-57.856-4.096l-84.5824 65.8432a43.37664 43.37664 0 0 0-7.5776 60.928c14.7456 18.8928 41.984 22.3232 60.928 7.5776l9.3184-7.2704c-0.9728 8.2432-2.4576 16.8448-4.608 25.6512-4.4032 17.92-10.9568 34.4064-19.6096 49.5104zM533.6064 609.1776H160.7168c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 3.3792 0.3584 6.656 0.8192 9.8816 58.7776 18.3296 121.2416 28.16 186.0096 28.16 115.6096 0 223.8464-31.5392 316.7232-86.3232v-145.7152c0-36.096-29.2352-65.3312-65.3312-65.3312z" fill="#3A9CED" p-id="20012"></path><path d="M734.208 104.0384H478.976c-36.096 0-65.3312 29.2352-65.3312 65.3312v193.9968c0 36.096 29.2352 65.3312 65.3312 65.3312h136.5504c67.5328-92.2624 110.2848-203.6736 118.6816-324.6592zM95.3856 684.3392c5.3248 0.1536 10.6496 0.4096 16.0256 0.4096 107.9296 0 209.408-27.392 297.984-75.52H160.7168c-36.096 0-65.3312 29.2352-65.3312 65.3312v9.7792z" fill="#59ADF8" p-id="20013"></path><path d="M312.32 182.3232C183.296 244.736 144.2304 348.928 141.4656 435.1488c31.8976-9.984 62.5664-22.5792 92.0576-37.3248C246.4768 337.92 285.6448 291.7376 350.1568 260.5056c21.6064-10.4448 30.6176-36.4032 20.1728-58.0096-10.4448-21.6064-36.4544-30.6176-58.0096-20.1728zM72.6528 435.712c-4.608 5.4272-7.4752 11.7248-9.0112 18.2272 25.9072-4.5568 51.3024-10.5472 75.9808-18.2272l-5.7856-4.9152c-18.2272-15.5136-45.6192-13.312-61.184 4.9152zM519.8848 104.0384h-40.9088c-36.096 0-65.3312 29.2352-65.3312 65.3312V262.144a624.7936 624.7936 0 0 0 106.24-158.1056z" fill="#6BC2FC" p-id="20014"></path></svg>
|
|
848
|
+
{% if lan == 'cn' %} 比对 {% else %} Compare {% endif %}
|
|
849
|
+
</a>
|
|
850
|
+
</div>
|
|
851
|
+
</div>
|
|
852
|
+
</div>
|
|
853
|
+
</div>
|
|
854
|
+
{% endblock %}
|
|
855
|
+
|
|
856
|
+
{% block js %}
|
|
857
|
+
<script>
|
|
858
|
+
|
|
859
|
+
$(document).ready(function() {
|
|
860
|
+
chartsClick()
|
|
861
|
+
initCpuCharts()
|
|
862
|
+
initMemoryCharts()
|
|
863
|
+
initFpsCharts()
|
|
864
|
+
initBatteryCharts()
|
|
865
|
+
initNetworkCharts()
|
|
866
|
+
initGpuCharts()
|
|
867
|
+
if('{{ apm_data.mem_detail_flag }}' == 'True' ){
|
|
868
|
+
initMemoryDetailCharts()
|
|
869
|
+
}
|
|
870
|
+
if('{{ apm_data.cpu_core_flag }}' == 'True' ){
|
|
871
|
+
console.log('test')
|
|
872
|
+
initCpuCoreCharts()
|
|
873
|
+
}
|
|
874
|
+
if('{{ apm_data.disk_flag }}' == 'True' ){
|
|
875
|
+
initDiskCharts()
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
function chartsClick(){
|
|
880
|
+
var chart_cards = document.getElementById('card-chart')
|
|
881
|
+
chart_cards.style.display = 'block'
|
|
882
|
+
$('.card-disk').hide()
|
|
883
|
+
$('.card-thermal').hide()
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
function diskClick(){
|
|
887
|
+
$('#card-chart').hide()
|
|
888
|
+
$('.card-disk').show()
|
|
889
|
+
$('.card-thermal').hide()
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
function thermalClick(){
|
|
893
|
+
$('#card-chart').hide()
|
|
894
|
+
$('.card-disk').hide()
|
|
895
|
+
$('.card-thermal').show()
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
function compare(){
|
|
899
|
+
let lan = '{{ lan }}';
|
|
900
|
+
let platform = '{{ platform }}';
|
|
901
|
+
let app = '{{ app }}';
|
|
902
|
+
let scene1 = '{{ scene }}';
|
|
903
|
+
let scene2 = $('.select-scene').val();
|
|
904
|
+
if(scene2){
|
|
905
|
+
window.location.href = '/compare_analysis?app=' + app + '&scene1=' + scene1 + '&scene2=' + scene2 +
|
|
906
|
+
'&platform=' + platform + '&lan=' + lan
|
|
907
|
+
}else{
|
|
908
|
+
SwalFire('error', 'Scene is empty', '', 2000);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
function saveHtml(platform, scene){
|
|
913
|
+
if(platform=='Android'){
|
|
914
|
+
saveAndroidHtml(scene)
|
|
915
|
+
}else{
|
|
916
|
+
saveiOSHtml(scene)
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
function saveAndroidHtml(scene){
|
|
921
|
+
$.ajax({
|
|
922
|
+
url: "/apm/export/html/android",
|
|
923
|
+
type: "GET",
|
|
924
|
+
async: true,
|
|
925
|
+
cache: false,
|
|
926
|
+
data:{
|
|
927
|
+
scene: scene,
|
|
928
|
+
cpu_app:'{{ apm_data.cpuAppRate }}',
|
|
929
|
+
cpu_sys:'{{ apm_data.cpuSystemRate }}',
|
|
930
|
+
mem_total:'{{ apm_data.totalPassAvg }}',
|
|
931
|
+
mem_swap:'{{ apm_data.swapPassAvg }}',
|
|
932
|
+
fps:'{{ apm_data.fps }}',
|
|
933
|
+
jank:'{{ apm_data.jank }}',
|
|
934
|
+
level:'{{ apm_data.batteryLevel }}',
|
|
935
|
+
temperature:'{{ apm_data.batteryTeml }}',
|
|
936
|
+
net_send:'{{ apm_data.flow_send }}',
|
|
937
|
+
net_recv:'{{ apm_data.flow_recv }}',
|
|
938
|
+
gpu:'{{ apm_data.gpu }}',
|
|
939
|
+
},
|
|
940
|
+
beforeSend: function () {
|
|
941
|
+
SwalLoading('Save Html','Saving html.')
|
|
942
|
+
},
|
|
943
|
+
success: function (data) {
|
|
944
|
+
if(data['status'] == 1 ){
|
|
945
|
+
SwalFire('success', 'Save successuly !', data['path'], 5000);
|
|
946
|
+
}else{
|
|
947
|
+
SwalFire('error', 'Save failed !', data['msg'], 2000);
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
function saveiOSHtml(scene){
|
|
954
|
+
$.ajax({
|
|
955
|
+
url: "/apm/export/html/ios",
|
|
956
|
+
type: "GET",
|
|
957
|
+
async: true,
|
|
958
|
+
cache: false,
|
|
959
|
+
data:{
|
|
960
|
+
scene: scene,
|
|
961
|
+
cpu_app:'{{ apm_data.cpuAppRate }}',
|
|
962
|
+
cpu_sys:'{{ apm_data.cpuSystemRate }}',
|
|
963
|
+
gpu:'{{ apm_data.gpu }}',
|
|
964
|
+
mem_total:'{{ apm_data.totalPassAvg }}',
|
|
965
|
+
fps:'{{ apm_data.fps }}',
|
|
966
|
+
temperature:'{{ apm_data.batteryTeml }}',
|
|
967
|
+
current:'{{ apm_data.batteryCurrent }}',
|
|
968
|
+
voltage:'{{ apm_data.batteryVoltage }}',
|
|
969
|
+
power:'{{ apm_data.batteryPower }}',
|
|
970
|
+
net_send:'{{ apm_data.flow_send }}',
|
|
971
|
+
net_recv:'{{ apm_data.flow_recv }}'
|
|
972
|
+
},
|
|
973
|
+
beforeSend: function () {
|
|
974
|
+
SwalLoading('Save Html','Saving html.')
|
|
975
|
+
},
|
|
976
|
+
success: function (data) {
|
|
977
|
+
if(data['status'] == 1 ){
|
|
978
|
+
SwalFire('success', 'Save successuly !', data['path'], 5000);
|
|
979
|
+
}else{
|
|
980
|
+
SwalFire('error', 'Save failed !', data['msg'], 2000);
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
function options(type,dataLabels=false) {
|
|
987
|
+
let options = {
|
|
988
|
+
chart: {
|
|
989
|
+
type: type,
|
|
990
|
+
fontFamily: 'inherit',
|
|
991
|
+
height: 240,
|
|
992
|
+
parentHeightOffset: 0,
|
|
993
|
+
toolbar: {
|
|
994
|
+
show: false,
|
|
995
|
+
},
|
|
996
|
+
animations: {
|
|
997
|
+
enabled: false
|
|
998
|
+
},
|
|
999
|
+
},
|
|
1000
|
+
dataLabels: {
|
|
1001
|
+
enabled: dataLabels
|
|
1002
|
+
},
|
|
1003
|
+
fill: {
|
|
1004
|
+
opacity: 1
|
|
1005
|
+
},
|
|
1006
|
+
stroke: {
|
|
1007
|
+
width: 2,
|
|
1008
|
+
lineCap: "round",
|
|
1009
|
+
curve: "smooth",
|
|
1010
|
+
},
|
|
1011
|
+
series: [],
|
|
1012
|
+
grid: {
|
|
1013
|
+
padding: {
|
|
1014
|
+
top: -20,
|
|
1015
|
+
bottom: -4
|
|
1016
|
+
},
|
|
1017
|
+
strokeDashArray: 4,
|
|
1018
|
+
},
|
|
1019
|
+
xaxis: {
|
|
1020
|
+
name: "time",
|
|
1021
|
+
tickAmount:6,
|
|
1022
|
+
labels: {
|
|
1023
|
+
rotate: 0,
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
};
|
|
1027
|
+
return options
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
function initCpuCharts(){
|
|
1031
|
+
var cpu_chart = new ApexCharts(document.querySelector("#chart-cpu"), options('line'));
|
|
1032
|
+
cpu_chart.render();
|
|
1033
|
+
$.ajax({
|
|
1034
|
+
url: '/apm/log',
|
|
1035
|
+
type: "GET",
|
|
1036
|
+
async: true,
|
|
1037
|
+
cache: false,
|
|
1038
|
+
data:{
|
|
1039
|
+
scene:'{{ scene }}',
|
|
1040
|
+
target:'cpu',
|
|
1041
|
+
platform:platform
|
|
1042
|
+
},
|
|
1043
|
+
beforeSend: function () {
|
|
1044
|
+
$('#cpu_spinner').show()
|
|
1045
|
+
$('#cpu_refresh_logo').hide()
|
|
1046
|
+
},
|
|
1047
|
+
complete: function () {
|
|
1048
|
+
$('#cpu_spinner').hide()
|
|
1049
|
+
$('#cpu_refresh_logo').show()
|
|
1050
|
+
},
|
|
1051
|
+
success: function (data) {
|
|
1052
|
+
cpu_chart.updateSeries([{
|
|
1053
|
+
name: 'app',
|
|
1054
|
+
data: data['cpuAppData']
|
|
1055
|
+
},{
|
|
1056
|
+
name: 'total',
|
|
1057
|
+
data: data['cpuSysData']
|
|
1058
|
+
}])
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
function initBatteryCharts(){
|
|
1064
|
+
var battery_chart = new ApexCharts(document.querySelector("#chart-battery"), options('line'));
|
|
1065
|
+
battery_chart.render();
|
|
1066
|
+
$.ajax({
|
|
1067
|
+
url: '/apm/log',
|
|
1068
|
+
type: "GET",
|
|
1069
|
+
async: true,
|
|
1070
|
+
cache: false,
|
|
1071
|
+
data:{
|
|
1072
|
+
scene:'{{ scene }}',
|
|
1073
|
+
target:'battery',
|
|
1074
|
+
platform:platform
|
|
1075
|
+
},
|
|
1076
|
+
beforeSend: function () {
|
|
1077
|
+
$('#battery_spinner').show()
|
|
1078
|
+
$('#battery_refresh_logo').hide()
|
|
1079
|
+
},
|
|
1080
|
+
complete: function () {
|
|
1081
|
+
$('#battery_spinner').hide()
|
|
1082
|
+
$('#battery_refresh_logo').show()
|
|
1083
|
+
},
|
|
1084
|
+
success: function (data) {
|
|
1085
|
+
if(platform == 'Android'){
|
|
1086
|
+
battery_chart.updateSeries([{
|
|
1087
|
+
name: 'level(%)',
|
|
1088
|
+
data: data['batteryLevel']
|
|
1089
|
+
},{
|
|
1090
|
+
name: 'temperature(°C)',
|
|
1091
|
+
data: data['batteryTem']
|
|
1092
|
+
}])
|
|
1093
|
+
}else {
|
|
1094
|
+
battery_chart.updateSeries([{
|
|
1095
|
+
name: 'temperature',
|
|
1096
|
+
data: data['batteryTem']
|
|
1097
|
+
},{
|
|
1098
|
+
name: 'Current',
|
|
1099
|
+
data: data['batteryCurrent']
|
|
1100
|
+
},{
|
|
1101
|
+
name: 'Voltage',
|
|
1102
|
+
data: data['batteryVoltage']
|
|
1103
|
+
},{
|
|
1104
|
+
name: 'Power',
|
|
1105
|
+
data: data['batteryPower']
|
|
1106
|
+
}])
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
function initFpsCharts(){
|
|
1113
|
+
var fps_chart = new ApexCharts(document.querySelector("#chart-fps"), options('line'));
|
|
1114
|
+
fps_chart.render();
|
|
1115
|
+
$.ajax({
|
|
1116
|
+
url: '/apm/log',
|
|
1117
|
+
type: "GET",
|
|
1118
|
+
async: true,
|
|
1119
|
+
cache: false,
|
|
1120
|
+
data:{
|
|
1121
|
+
scene:'{{ scene }}',
|
|
1122
|
+
target:'fps',
|
|
1123
|
+
platform:platform
|
|
1124
|
+
},
|
|
1125
|
+
beforeSend: function () {
|
|
1126
|
+
$('#fps_spinner').show()
|
|
1127
|
+
$('#fps_refresh_logo').hide()
|
|
1128
|
+
},
|
|
1129
|
+
complete: function () {
|
|
1130
|
+
$('#fps_spinner').hide()
|
|
1131
|
+
$('#fps_refresh_logo').show()
|
|
1132
|
+
},
|
|
1133
|
+
success: function (data) {
|
|
1134
|
+
if(platform == 'Android'){
|
|
1135
|
+
fps_chart.updateSeries([{
|
|
1136
|
+
name: 'fps',
|
|
1137
|
+
data: data['fps']
|
|
1138
|
+
},{
|
|
1139
|
+
name: 'jank',
|
|
1140
|
+
data: data['jank']
|
|
1141
|
+
}])
|
|
1142
|
+
}else{
|
|
1143
|
+
fps_chart.updateSeries([{
|
|
1144
|
+
name: 'fps',
|
|
1145
|
+
data: data['fps']
|
|
1146
|
+
}])
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
function initGpuCharts(){
|
|
1153
|
+
var gpu_chart = new ApexCharts(document.querySelector("#chart-gpu"), options('line'));
|
|
1154
|
+
gpu_chart.render();
|
|
1155
|
+
$.ajax({
|
|
1156
|
+
url: '/apm/log',
|
|
1157
|
+
type: "GET",
|
|
1158
|
+
async: true,
|
|
1159
|
+
cache: false,
|
|
1160
|
+
data:{
|
|
1161
|
+
scene:'{{ scene }}',
|
|
1162
|
+
target:'gpu',
|
|
1163
|
+
platform:platform
|
|
1164
|
+
},
|
|
1165
|
+
beforeSend: function () {
|
|
1166
|
+
$('#gpu_spinner').show()
|
|
1167
|
+
$('#gpu_refresh_logo').hide()
|
|
1168
|
+
},
|
|
1169
|
+
complete: function () {
|
|
1170
|
+
$('#gpu_spinner').hide()
|
|
1171
|
+
$('#gpu_refresh_logo').show()
|
|
1172
|
+
},
|
|
1173
|
+
success: function (data) {
|
|
1174
|
+
gpu_chart.updateSeries([{
|
|
1175
|
+
name: 'gpu',
|
|
1176
|
+
data: data['gpu']
|
|
1177
|
+
}])
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
function initMemoryCharts(){
|
|
1183
|
+
var mem_chart = new ApexCharts(document.querySelector("#chart-mem"), options('line'));
|
|
1184
|
+
mem_chart.render();
|
|
1185
|
+
$.ajax({
|
|
1186
|
+
url: '/apm/log',
|
|
1187
|
+
type: "GET",
|
|
1188
|
+
async: true,
|
|
1189
|
+
cache: false,
|
|
1190
|
+
data:{
|
|
1191
|
+
scene:'{{ scene }}',
|
|
1192
|
+
target:'mem',
|
|
1193
|
+
platform:platform
|
|
1194
|
+
},
|
|
1195
|
+
beforeSend: function () {
|
|
1196
|
+
$('#mem_spinner').show()
|
|
1197
|
+
$('#mem_refresh_logo').hide()
|
|
1198
|
+
},
|
|
1199
|
+
complete: function () {
|
|
1200
|
+
$('#mem_spinner').hide()
|
|
1201
|
+
$('#mem_refresh_logo').show()
|
|
1202
|
+
},
|
|
1203
|
+
success: function (data) {
|
|
1204
|
+
if(platform == 'Android'){
|
|
1205
|
+
mem_chart.updateSeries([{
|
|
1206
|
+
name: 'total',
|
|
1207
|
+
data: data['memTotalData']
|
|
1208
|
+
},{
|
|
1209
|
+
name: 'swap',
|
|
1210
|
+
data: data['memSwapData']
|
|
1211
|
+
}])
|
|
1212
|
+
}else{
|
|
1213
|
+
mem_chart.updateSeries([{
|
|
1214
|
+
name: 'total',
|
|
1215
|
+
data: data['memTotalData']
|
|
1216
|
+
}])
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
function initMemoryDetailCharts(){
|
|
1223
|
+
var mem_detail_chart = new ApexCharts(document.querySelector("#chart-mem-detail"), options('line'));
|
|
1224
|
+
mem_detail_chart.render();
|
|
1225
|
+
$.ajax({
|
|
1226
|
+
url: '/apm/log',
|
|
1227
|
+
type: "GET",
|
|
1228
|
+
async: true,
|
|
1229
|
+
cache: false,
|
|
1230
|
+
data:{
|
|
1231
|
+
scene:'{{ scene }}',
|
|
1232
|
+
target:'mem_detail',
|
|
1233
|
+
platform:platform
|
|
1234
|
+
},
|
|
1235
|
+
beforeSend: function () {
|
|
1236
|
+
$('#mem_detail_spinner').show()
|
|
1237
|
+
$('#mem_detail_refresh_logo').hide()
|
|
1238
|
+
},
|
|
1239
|
+
complete: function () {
|
|
1240
|
+
$('#mem_detail_spinner').hide()
|
|
1241
|
+
$('#mem_detail_refresh_logo').show()
|
|
1242
|
+
},
|
|
1243
|
+
success: function (data) {
|
|
1244
|
+
console.log(data)
|
|
1245
|
+
mem_detail_chart.updateSeries([{
|
|
1246
|
+
name: 'java',
|
|
1247
|
+
data: data['memory_detail']['java_heap']
|
|
1248
|
+
},{
|
|
1249
|
+
name: 'native',
|
|
1250
|
+
data: data['memory_detail']['native_heap']
|
|
1251
|
+
},{
|
|
1252
|
+
name: 'code',
|
|
1253
|
+
data: data['memory_detail']['code_pss']
|
|
1254
|
+
},{
|
|
1255
|
+
name: 'stack',
|
|
1256
|
+
data: data['memory_detail']['stack_pss']
|
|
1257
|
+
},{
|
|
1258
|
+
name: 'graphics',
|
|
1259
|
+
data: data['memory_detail']['graphics_pss']
|
|
1260
|
+
},{
|
|
1261
|
+
name: 'private',
|
|
1262
|
+
data: data['memory_detail']['private_pss']
|
|
1263
|
+
},{
|
|
1264
|
+
name: 'system',
|
|
1265
|
+
data: data['memory_detail']['system_pss']
|
|
1266
|
+
},])
|
|
1267
|
+
}
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
function initCpuCoreCharts(){
|
|
1272
|
+
var cpu_core_chart = new ApexCharts(document.querySelector("#chart-cpu-core"), options('line'));
|
|
1273
|
+
cpu_core_chart.render();
|
|
1274
|
+
$.ajax({
|
|
1275
|
+
url: '/apm/log',
|
|
1276
|
+
type: "GET",
|
|
1277
|
+
async: true,
|
|
1278
|
+
cache: false,
|
|
1279
|
+
data:{
|
|
1280
|
+
scene:'{{ scene }}',
|
|
1281
|
+
target:'cpu_core',
|
|
1282
|
+
platform:platform
|
|
1283
|
+
},
|
|
1284
|
+
beforeSend: function () {
|
|
1285
|
+
$('#cpu_core_spinner').show()
|
|
1286
|
+
$('#cpu_core_refresh_logo').hide()
|
|
1287
|
+
},
|
|
1288
|
+
complete: function () {
|
|
1289
|
+
$('#cpu_core_spinner').hide()
|
|
1290
|
+
$('#cpu_core_refresh_logo').show()
|
|
1291
|
+
},
|
|
1292
|
+
success: function (data) {
|
|
1293
|
+
var array = data['cpu_core']
|
|
1294
|
+
elementList = new Array()
|
|
1295
|
+
|
|
1296
|
+
for (let i = 0; i < data['cores']; i++) {
|
|
1297
|
+
elementList.push(
|
|
1298
|
+
{
|
|
1299
|
+
name: 'cpu'+i,
|
|
1300
|
+
data: array['cpu'+i]
|
|
1301
|
+
}
|
|
1302
|
+
)
|
|
1303
|
+
}
|
|
1304
|
+
cpu_core_chart.updateSeries(elementList)
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
function initNetworkCharts(){
|
|
1310
|
+
var network_chart = new ApexCharts(document.querySelector("#chart-networkdata"), options('line',false));
|
|
1311
|
+
network_chart.render();
|
|
1312
|
+
$.ajax({
|
|
1313
|
+
url: '/apm/log',
|
|
1314
|
+
type: "GET",
|
|
1315
|
+
async: true,
|
|
1316
|
+
cache: false,
|
|
1317
|
+
data:{
|
|
1318
|
+
scene:'{{ scene }}',
|
|
1319
|
+
target:'flow',
|
|
1320
|
+
platform:platform
|
|
1321
|
+
},
|
|
1322
|
+
beforeSend: function () {
|
|
1323
|
+
$('#networkdata_spinner').show()
|
|
1324
|
+
$('#networkdata_refresh_logo').hide()
|
|
1325
|
+
},
|
|
1326
|
+
complete: function () {
|
|
1327
|
+
$('#networkdata_spinner').hide()
|
|
1328
|
+
$('#networkdata_refresh_logo').show()
|
|
1329
|
+
},
|
|
1330
|
+
success: function (data) {
|
|
1331
|
+
network_chart.updateSeries([{
|
|
1332
|
+
name: 'send',
|
|
1333
|
+
data: data['upFlow']
|
|
1334
|
+
},{
|
|
1335
|
+
name: 'recieve',
|
|
1336
|
+
data: data['downFlow']
|
|
1337
|
+
}])
|
|
1338
|
+
}
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
function initDiskCharts(){
|
|
1343
|
+
var disk_chart = new ApexCharts(document.querySelector("#chart-disk"), options('line',false));
|
|
1344
|
+
disk_chart.render();
|
|
1345
|
+
$.ajax({
|
|
1346
|
+
url: '/apm/log',
|
|
1347
|
+
type: "GET",
|
|
1348
|
+
async: true,
|
|
1349
|
+
cache: false,
|
|
1350
|
+
data:{
|
|
1351
|
+
scene:'{{ scene }}',
|
|
1352
|
+
target:'disk',
|
|
1353
|
+
platform:platform
|
|
1354
|
+
},
|
|
1355
|
+
beforeSend: function () {
|
|
1356
|
+
$('#disk_spinner').show()
|
|
1357
|
+
$('#disk_refresh_logo').hide()
|
|
1358
|
+
},
|
|
1359
|
+
complete: function () {
|
|
1360
|
+
$('#disk_spinner').hide()
|
|
1361
|
+
$('#disk_refresh_logo').show()
|
|
1362
|
+
},
|
|
1363
|
+
success: function (data) {
|
|
1364
|
+
disk_chart.updateSeries([{
|
|
1365
|
+
name: 'used',
|
|
1366
|
+
data: data['used']
|
|
1367
|
+
},{
|
|
1368
|
+
name: 'free',
|
|
1369
|
+
data: data['free']
|
|
1370
|
+
}])
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1374
|
+
</script>
|
|
1375
|
+
{% endblock %}
|