cpu查看
This commit is contained in:
		
							parent
							
								
									cf79bbb23d
								
							
						
					
					
						commit
						7ff283169c
					
				| @ -31,8 +31,6 @@ import FileUtil from '../../common/utils/File'; | ||||
| import { GlobalConfig } from '../../config/index'; | ||||
| import prompt from '@ohos.promptAction' | ||||
| import DB, { ColumnType } from '../database/DbSql'; | ||||
| import { MA_SYS_SET_COLUMN } from '../../model/Table'; | ||||
| import { Logger } from '../utils/tempLogger'; | ||||
| 
 | ||||
| // @ts-nocheck
 | ||||
| //读表
 | ||||
| @ -433,7 +431,6 @@ export async function upDataZhongxinginitialization(param) { | ||||
|       console.log('daihai2', JSON.stringify(str)) | ||||
| 
 | ||||
|       initialization(str).then(async (res) => { | ||||
|         Logger.info(JSON.stringify(res.initializationRsp.body.SystemParm)) | ||||
|         console.log('daihai3', JSON.stringify(res)) | ||||
|         if (!res || res.initializationRsp.head.resultCode == 1) { | ||||
|           console.log('daihai34', JSON.stringify(res)) | ||||
|  | ||||
| @ -1,14 +1,12 @@ | ||||
| import UIAbility from '@ohos.app.ability.UIAbility'; | ||||
| import hilog from '@ohos.hilog'; | ||||
| import window from '@ohos.window'; | ||||
| import { Logger } from '../common/utils/tempLogger' | ||||
| import { makedir } from '../common/service/fileService' | ||||
| import { Array2Byte } from '../common/utils/tools' | ||||
| import { GlobalConfig } from '../config/global' | ||||
| import { tcpUtil } from '../common/utils/TcpRequest'; | ||||
| import DB from '../common/database/DbSql'; | ||||
| import { initTable } from '../common/service/initable'; | ||||
| import { CpuUsageMonitor } from '../common/utils/usage'; | ||||
| import { examPeerOccupy  } from "../pages/judgeSDK/api" | ||||
| 
 | ||||
| export default class EntryAbility extends UIAbility { | ||||
|   async onCreate(want, launchParam) { | ||||
| @ -36,7 +34,10 @@ export default class EntryAbility extends UIAbility { | ||||
|     // this.context | ||||
|     // Main window is created, set main page for this ability | ||||
|     hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); | ||||
|     Logger.init() | ||||
| 
 | ||||
|     setInterval(() => { | ||||
|       console.log("examPeerOccupy", examPeerOccupy()) | ||||
|     }, 5000) | ||||
| 
 | ||||
| 
 | ||||
|     globalThis.carInfo = {} | ||||
|  | ||||
| @ -223,4 +223,12 @@ async  function handle(temp,fnName):Promise<string>{ | ||||
|       reject(temp) | ||||
|     } | ||||
|   }) | ||||
| } | ||||
| 
 | ||||
| /** | ||||
|  * 获取cpu内存使用情况 | ||||
|  * @returns | ||||
|  */ | ||||
| export function examPeerOccupy() { | ||||
|   return libJudgeSdk.examPeerOccupy() | ||||
| } | ||||
| @ -54,7 +54,6 @@ import { | ||||
|   examJudgeVersion | ||||
| } from './api/index'; | ||||
| import { getSyncData, upDateTableByArray } from '../../common/service/initable'; | ||||
| import { Logger } from '../../common/utils/tempLogger'; | ||||
| 
 | ||||
| const judgeTag = 'SURENJUN_JUDGE' | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user