use goroutine to record cpu usage

This commit is contained in:
0xJacky 2022-02-22 00:17:59 +08:00
parent 16a3d02d9c
commit 897c3cddcd
7 changed files with 134 additions and 63 deletions

View file

@ -0,0 +1,9 @@
import http from '@/lib/http'
const analytic = {
cpu_usage() {
return http.get('/analytic/cpu')
}
}
export default analytic