| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8304f2c0","chunk-730b59f9"],{4054:function(t,e,a){"use strict";var n=a("29fd"),i=a("bd47"),r=a("5635"),s=RangeError,o=Math.floor;t.exports=function(t){var e=i(r(this)),a="",c=n(t);if(c<0||c===1/0)throw new s("Wrong number of repetitions");for(;c>0;(c=o(c/2))&&(e+=e))c%2&&(a+=e);return a}},7749:function(t,e,a){"use strict";a("af72")},a9aa:function(t,e,a){"use strict";a.r(e);a("c41f");var n=a("6678"),i=a.n(n);function r(t){if(0===t)return"0 B";var e=1024,a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(t)/Math.log(e));return(t/Math.pow(e,n)).toPrecision(3)+" "+a[n]}e["default"]={components:{ECharts:i.a},filters:{unit_size:r,fixed2:function(t){return t?parseFloat(parseFloat(t).toFixed(2)):0}},methods:{conByte:r}}},af4a:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"perf-mysql"},[e("p",{staticClass:"title"},[t._v(" Mysql ")]),e("el-row",{staticClass:"fn"},[e("el-col",{attrs:{span:8}},[e("div",{staticClass:"block"},[e("div",{staticClass:"icon _disk"},[e("icon-svg",{attrs:{name:"disk"}})],1),e("ul",{staticClass:"b"},[e("li",[e("p",[t._v("已使用")]),e("p",[t._v(t._s(t.data_size))])])])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"block"},[e("div",{staticClass:"icon _cache"},[e("icon-svg",{attrs:{name:"cache"}})],1),e("ul",{staticClass:"b"},[e("li",[e("p",[t._v("缓存数")]),e("p",[t._v(t._s(t.Threads_cached))])])])])]),e("el-col",{attrs:{span:8}},[e("div",{staticClass:"block"},[e("div",{staticClass:"icon _connect"},[e("icon-svg",{attrs:{name:"connect"}})],1),e("ul",{staticClass:"b"},[e("li",[e("p",[t._v("连接数")]),e("p",[t._v(t._s(t.Threads_connected))])])])])])],1),e("e-charts",{attrs:{options:t.chart.options}})],1)},i=[],r=(a("0da6"),a("865d"),a("8f26"),a("963e"),a("1447"),a("0401"),a("164e")),s=a.n(r),o=a("a9aa"),c={mixins:[o["default"]],data:function(){return{chart:{options:{}},Threads_connected:0,Threads_cached:0,data_size:0}},methods:{refresh:function(t){var e=t.data,a=t.time,n=e[e.length-1],i=n.mysql,r=i.mysqlConn,s=i.mysqlSize;this.Threads_cached=r[0].Threads_cached,this.Threads_connected=r[1].Threads_connected,this.data_size=s.reduce((function(t,e){return t+parseFloat(e.data_size)}),0)+"mb",this.chart.options=this.onChart(a,e.map((function(t){return t.mysql.mysqlConn[3].Threads_running})))},onChart:function(t,e){return{tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"rgb(15, 75, 111)"}},backgroundColor:"rgb(255,255,255)",padding:[5,10],textStyle:{color:"rgb(15, 75, 111)"},extraCssText:"box-shadow: 0 0 5px rgba(0, 0, 0, 0.3)",formatter:function(t){return"线程数:".concat(t[0].data)}},grid:{left:"10px",right:"10px",bottom:"10px",top:"30px"},xAxis:{type:"category",show:!1,boundaryGap:!1,splitLine:{interval:"auto"},axisTick:{show:!1},axisLine:{show:!1},axisLabel:{margin:10,textStyle:{fontSize:12}},data:t},yAxis:{type:"value",show:!1,splitLine:{show:!0},axisTick:{show:!1},axisLine:{show:!0}},series:[{type:"line",smooth:!0,showSymbol:!1,symbol:"circle",symbolSize:6,data:e,markPoint:{symbolSize:30,data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},areaStyle:{normal:{color:new s.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(15, 75, 111, 0.5)"},{offset:1,color:"rgba(15, 75, 111, 0.1)"}],!1)}},itemStyle:{normal:{color:"rgb(15, 75, 111)"}},lineStyle:{normal:{width:1}}}]}}}},l=c,h=(a("7749"),a("1805")),d=Object(h["a"])(l,n,i,!1,null,"0771713f",null);e["default"]=d.exports},af72:function(t,e,a){},c41f:function(t,e,a){"use strict";var n=a("04c2"),i=a("42ee"),r=a("29fd"),s=a("13dd0"),o=a("4054"),c=a("56ce"),l=RangeError,h=String,d=Math.floor,f=i(o),u=i("".slice),p=i(1.1.toFixed),m=function(t,e,a){return 0===e?a:e%2===1?m(t,e-1,a*t):m(t*t,e/2,a)},v=function(t){var e=0,a=t;while(a>=4096)e+=12,a/=4096;while(a>=2)e+=1,a/=2;return e},b=function(t,e,a){var n=-1,i=a;while(++n<6)i+=e*t[n],t[n]=i%1e7,i=d(i/1e7)},g=function(t,e){var a=6,n=0;while(--a>=0)n+=t[a],t[a]=d(n/e),n=n%e*1e7},w=function(t){var e=6,a="";while(--e>=0)if(""!==a||0===e||0!==t[e]){var n=h(t[e]);a=""===a?n:a+f("0",7-n.length)+n}return a},x=c((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!c((function(){p({})}));n({target:"Number",proto:!0,forced:x},{toFixed:function(t){var e,a,n,i,o=s(this),c=r(t),d=[0,0,0,0,0,0],p="",x="0";if(c<0||c>20)throw new l("Incorrect fraction digits");if(o!==o)return"NaN";if(o<=-1e21||o>=1e21)return h(o);if(o<0&&(p="-",o=-o),o>1e-21)if(e=v(o*m(2,69,1))-69,a=e<0?o*m(2,-e,1):o/m(2,e,1),a*=4503599627370496,e=52-e,e>0){b(d,0,a),n=c;while(n>=7)b(d,1e7,0),n-=7;b(d,m(10,n,1),0),n=e-1;while(n>=23)g(d,1<<23),n-=23;g(d,1<<n),b(d,1,1),g(d,2),x=w(d)}else b(d,0,a),b(d,1<<-e,0),x=w(d)+f("0",c);return c>0?(i=x.length,x=p+(i<=c?"0."+f("0",c-i)+x:u(x,0,i-c)+"."+u(x,i-c))):x=p+x,x}})}}]);
|