46 Star 173 Fork 4.7K

OpenHarmony/interface_sdk-js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.gitee
api
@internal
ability
advertising
app
application
arkui
bundle
bundleManager
common
commonEvent
config
continuation
data/rdb
device-define
form
global
graphics3d
multimedia
notification
security
syscapCheck
tag
wantAgent
@ohos.InputMethodExtensionAbility.d.ts
@ohos.InputMethodExtensionContext.d.ts
@ohos.InputMethodSubtype.d.ts
@ohos.PiPWindow.d.ts
@ohos.UiTest.d.ts
@ohos.WallpaperExtensionAbility.d.ts
@ohos.WorkSchedulerExtensionAbility.d.ts
@ohos.ability.ability.d.ts
@ohos.ability.dataUriUtils.d.ts
@ohos.ability.errorCode.d.ts
@ohos.ability.featureAbility.d.ts
@ohos.ability.particleAbility.d.ts
@ohos.ability.screenLockFileManager.d.ts
@ohos.ability.wantConstant.d.ts
@ohos.abilityAccessCtrl.d.ts
@ohos.accessibility.GesturePath.d.ts
@ohos.accessibility.GesturePoint.d.ts
@ohos.accessibility.config.d.ts
@ohos.accessibility.d.ts
@ohos.account.appAccount.d.ts
@ohos.account.distributedAccount.d.ts
@ohos.account.osAccount.d.ts
@ohos.advertising.AdComponent.d.ets
@ohos.advertising.AdsServiceExtensionAbility.d.ts
@ohos.advertising.AutoAdComponent.d.ets
@ohos.advertising.d.ts
@ohos.ai.intelligentVoice.d.ts
@ohos.ai.mindSporeLite.d.ts
@ohos.animation.windowAnimationManager.d.ts
@ohos.animator.d.ts
@ohos.app.ability.Ability.d.ts
@ohos.app.ability.AbilityConstant.d.ts
@ohos.app.ability.AbilityLifecycleCallback.d.ts
@ohos.app.ability.AbilityStage.d.ts
@ohos.app.ability.ActionExtensionAbility.d.ts
@ohos.app.ability.AppServiceExtensionAbility.d.ts
@ohos.app.ability.ApplicationStateChangeCallback.d.ts
@ohos.app.ability.AtomicServiceOptions.d.ts
@ohos.app.ability.AutoFillExtensionAbility.d.ts
@ohos.app.ability.ChildProcess.d.ts
@ohos.app.ability.ChildProcessArgs.d.ts
@ohos.app.ability.ChildProcessOptions.d.ts
@ohos.app.ability.CompletionHandler.d.ts
@ohos.app.ability.CompletionHandlerForAtomicService.d.ts
@ohos.app.ability.Configuration.d.ts
@ohos.app.ability.ConfigurationConstant.d.ts
@ohos.app.ability.DriverExtensionAbility.d.ts
@ohos.app.ability.EmbeddableUIAbility.d.ts
@ohos.app.ability.EmbeddedUIExtensionAbility.d.ts
@ohos.app.ability.EnvironmentCallback.d.ts
@ohos.app.ability.ExtensionAbility.d.ts
@ohos.app.ability.FenceExtensionAbility.d.ts
@ohos.app.ability.FenceExtensionContext.d.ts
@ohos.app.ability.InsightIntentContext.d.ts
@ohos.app.ability.InsightIntentDecorator.d.ts
@ohos.app.ability.InsightIntentEntryExecutor.d.ts
@ohos.app.ability.InsightIntentExecutor.d.ts
@ohos.app.ability.MediaControlExtensionAbility.d.ts
@ohos.app.ability.OpenLinkOptions.d.ts
@ohos.app.ability.PhotoEditorExtensionAbility.d.ts
@ohos.app.ability.PrintExtensionAbility.d.ts
@ohos.app.ability.ServiceExtensionAbility.d.ts
@ohos.app.ability.ShareExtensionAbility.d.ts
@ohos.app.ability.StartOptions.d.ts
@ohos.app.ability.UIAbility.d.ts
@ohos.app.ability.UIExtensionAbility.d.ts
@ohos.app.ability.UIExtensionContentSession.d.ts
@ohos.app.ability.UIServiceExtensionAbility.d.ts
@ohos.app.ability.UserAuthExtensionAbility.d.ts
@ohos.app.ability.VpnExtensionAbility.d.ts
@ohos.app.ability.Want.d.ts
@ohos.app.ability.abilityDelegatorRegistry.d.ts
@ohos.app.ability.abilityManager.d.ts
@ohos.app.ability.appManager.d.ts
@ohos.app.ability.appRecovery.d.ts
@ohos.app.ability.application.d.ts
@ohos.app.ability.autoFillManager.d.ts
@ohos.app.ability.autoStartupManager.d.ts
@ohos.app.ability.childProcessManager.d.ts
@ohos.app.ability.common.d.ts
@ohos.app.ability.contextConstant.d.ts
@ohos.app.ability.continueManager.d.ts
@ohos.app.ability.dataUriUtils.d.ts
@ohos.app.ability.dialogRequest.d.ts
@ohos.app.ability.dialogSession.d.ts
@ohos.app.ability.errorManager.d.ts
@ohos.app.ability.insightIntent.d.ts
@ohos.app.ability.insightIntentDriver.d.ts
@ohos.app.ability.kioskManager.d.ts
@ohos.app.ability.missionManager.d.ts
@ohos.app.ability.quickFixManager.d.ts
@ohos.app.ability.sendableContextManager.d.ets
@ohos.app.ability.wantAgent.d.ts
@ohos.app.ability.wantConstant.d.ts
@ohos.app.appstartup.StartupConfig.d.ts
@ohos.app.appstartup.StartupConfigEntry.d.ts
@ohos.app.appstartup.StartupListener.d.ts
@ohos.app.appstartup.StartupTask.d.ets
@ohos.app.appstartup.startupManager.d.ts
@ohos.app.businessAbilityRouter.d.ts
@ohos.app.form.FormEditExtensionAbility.d.ts
@ohos.app.form.FormExtensionAbility.d.ts
@ohos.app.form.LiveFormExtensionAbility.d.ts
@ohos.app.form.formAgent.d.ts
@ohos.app.form.formBindingData.d.ts
@ohos.app.form.formHost.d.ts
@ohos.app.form.formInfo.d.ts
@ohos.app.form.formObserver.d.ts
@ohos.app.form.formProvider.d.ts
@ohos.application.AccessibilityExtensionAbility.d.ts
@ohos.application.BackupExtensionAbility.d.ts
@ohos.application.Configuration.d.ts
@ohos.application.ConfigurationConstant.d.ts
@ohos.application.DataShareExtensionAbility.d.ts
@ohos.application.DistributedExtensionAbility.d.ts
@ohos.application.DistributedExtensionContext.d.ts
@ohos.application.StaticSubscriberExtensionAbility.d.ts
@ohos.application.StaticSubscriberExtensionContext.d.ts
@ohos.application.Want.d.ts
@ohos.application.WindowExtensionAbility.d.ts
@ohos.application.abilityDelegatorRegistry.d.ts
@ohos.application.abilityManager.d.ts
@ohos.application.appManager.d.ts
@ohos.application.formBindingData.d.ts
@ohos.application.formError.d.ts
@ohos.application.formHost.d.ts
@ohos.application.formInfo.d.ts
@ohos.application.formProvider.d.ts
@ohos.application.missionManager.d.ts
@ohos.application.testRunner.d.ts
@ohos.application.uriPermissionManager.d.ts
@ohos.arkui.ArcAlphabetIndexer.d.ts
@ohos.arkui.ArcList.d.ts
@ohos.arkui.ArcScrollBar.d.ts
@ohos.arkui.ArcSwiper.d.ts
@ohos.arkui.Prefetcher.d.ts
@ohos.arkui.StateManagement.d.ts
@ohos.arkui.UIContext.d.ts
@ohos.arkui.advanced.ArcButton.d.ets
@ohos.arkui.advanced.ArcSlider.d.ets
@ohos.arkui.advanced.Chip.d.ets
@ohos.arkui.advanced.ChipGroup.d.ets
@ohos.arkui.advanced.ComposeListItem.d.ets
@ohos.arkui.advanced.ComposeTitleBar.d.ets
@ohos.arkui.advanced.Counter.d.ets
@ohos.arkui.advanced.Dialog.d.ets
@ohos.arkui.advanced.DialogV2.d.ets
@ohos.arkui.advanced.DownloadFileButton.d.ets
@ohos.arkui.advanced.EditableTitleBar.d.ets
@ohos.arkui.advanced.ExceptionPrompt.d.ets
@ohos.arkui.advanced.Filter.d.ets
@ohos.arkui.advanced.FoldSplitContainer.d.ets
@ohos.arkui.advanced.FormMenu.d.ets
@ohos.arkui.advanced.FullScreenLaunchComponent.d.ets
@ohos.arkui.advanced.GridObjectSortComponent.d.ets
@ohos.arkui.advanced.InnerFullScreenLaunchComponent.d.ets
@ohos.arkui.advanced.MultiNavigation.d.ets
@ohos.arkui.advanced.Popup.d.ets
@ohos.arkui.advanced.ProgressButton.d.ets
@ohos.arkui.advanced.ProgressButtonV2.d.ets
@ohos.arkui.advanced.SegmentButton.d.ets
@ohos.arkui.advanced.SegmentButtonV2.d.ets
@ohos.arkui.advanced.SelectTitleBar.d.ets
@ohos.arkui.advanced.SelectionMenu.d.ets
@ohos.arkui.advanced.SplitLayout.d.ets
@ohos.arkui.advanced.SubHeader.d.ets
@ohos.arkui.advanced.SubHeaderV2.d.ets
@ohos.arkui.advanced.SwipeRefresher.d.ets
@ohos.arkui.advanced.TabTitleBar.d.ets
@ohos.arkui.advanced.ToolBar.d.ets
@ohos.arkui.advanced.ToolBarV2.d.ets
@ohos.arkui.advanced.TreeView.d.ets
@ohos.arkui.component.d.ets
@ohos.arkui.componentSnapshot.d.ts
@ohos.arkui.componentUtils.d.ts
@ohos.arkui.dragController.d.ts
@ohos.arkui.drawableDescriptor.d.ts
@ohos.arkui.inspector.d.ts
@ohos.arkui.modifier.d.ts
@ohos.arkui.node.d.ts
@ohos.arkui.observer.d.ts
@ohos.arkui.performanceMonitor.d.ts
@ohos.arkui.shape.d.ts
@ohos.arkui.stateManagement.d.ets
@ohos.arkui.theme.d.ts
@ohos.arkui.uiExtension.d.ts
@ohos.atomicservice.AtomicServiceNavigation.d.ets
@ohos.atomicservice.AtomicServiceSearch.d.ets
@ohos.atomicservice.AtomicServiceTabs.d.ets
@ohos.atomicservice.AtomicServiceWeb.d.ets
@ohos.atomicservice.HalfScreenLaunchComponent.d.ets
@ohos.atomicservice.InterstitialDialogAction.d.ets
@ohos.atomicservice.NavPushPathHelper.d.ets
@ohos.backgroundTaskManager.d.ts
@ohos.base.d.ets
@ohos.base.d.ts
@ohos.batteryInfo.d.ets
@ohos.batteryInfo.d.ts
@ohos.batteryStatistics.d.ts
@ohos.bluetooth.a2dp.d.ts
@ohos.bluetooth.access.d.ts
@ohos.bluetooth.baseProfile.d.ts
@ohos.bluetooth.ble.d.ts
@ohos.bluetooth.connection.d.ts
@ohos.bluetooth.constant.d.ts
@ohos.bluetooth.d.ts
@ohos.bluetooth.hfp.d.ts
@ohos.bluetooth.hid.d.ts
@ohos.bluetooth.map.d.ts
@ohos.bluetooth.opp.d.ts
@ohos.bluetooth.pan.d.ts
@ohos.bluetooth.pbap.d.ts
@ohos.bluetooth.socket.d.ts
@ohos.bluetooth.wearDetection.d.ts
@ohos.bluetoothManager.d.ts
@ohos.brightness.d.ts
@ohos.buffer.d.ts
@ohos.bundle.appControl.d.ts
@ohos.bundle.appDomainVerify.d.ts
@ohos.bundle.bundleManager.d.ts
@ohos.bundle.bundleMonitor.d.ts
@ohos.bundle.bundleResourceManager.d.ts
@ohos.bundle.d.ts
@ohos.bundle.defaultAppManager.d.ts
@ohos.bundle.distributedBundleManager.d.ts
@ohos.bundle.freeInstall.d.ts
@ohos.bundle.innerBundleManager.d.ts
@ohos.bundle.installer.d.ts
@ohos.bundle.launcherBundleManager.d.ts
@ohos.bundle.overlay.d.ts
@ohos.bundle.shortcutManager.d.ts
@ohos.bundleState.d.ts
@ohos.bytrace.d.ts
@ohos.calendarManager.d.ts
@ohos.charger.d.ts
@ohos.commonEvent.d.ts
@ohos.commonEventManager.d.ts
@ohos.configPolicy.d.ts
@ohos.connectedTag.d.ts
@ohos.contact.d.ts
@ohos.continuation.continuationManager.d.ts
@ohos.convertxml.d.ts
@ohos.cooperate.d.ts
@ohos.curves.d.ts
@ohos.customization.customConfig.d.ts
@ohos.data.DataShareResultSet.d.ts
@ohos.data.UdmfComponents.d.ets
@ohos.data.ValuesBucket.d.ts
@ohos.data.cloudData.d.ts
@ohos.data.cloudExtension.d.ts
@ohos.data.commonType.d.ts
@ohos.data.dataAbility.d.ts
@ohos.data.dataShare.d.ts
@ohos.data.dataSharePredicates.d.ts
@ohos.data.distributedData.d.ts
@ohos.data.distributedDataObject.d.ts
@ohos.data.distributedKVStore.d.ts
@ohos.data.intelligence.d.ts
@ohos.data.preferences.d.ts
@ohos.data.rdb.d.ts
@ohos.data.relationalStore.d.ts
@ohos.data.sendablePreferences.d.ets
@ohos.data.sendableRelationalStore.d.ets
@ohos.data.storage.d.ts
@ohos.data.unifiedDataChannel.d.ts
@ohos.data.uniformDataStruct.d.ts
@ohos.data.uniformTypeDescriptor.d.ts
@ohos.deviceAttest.d.ts
@ohos.deviceInfo.d.ets
@ohos.deviceInfo.d.ts
@ohos.deviceStatus.dragInteraction.d.ts
@ohos.display.d.ts
@ohos.distributedBundle.d.ts
@ohos.distributedDeviceManager.d.ts
@ohos.distributedHardware.deviceManager.d.ts
@ohos.distributedHardware.hardwareManager.d.ts
@ohos.distributedHardware.mechanicManager.d.ts
@ohos.distributedMissionManager.d.ts
@ohos.distributedsched.abilityConnectionManager.d.ts
@ohos.distributedsched.linkEnhance.d.ts
@ohos.distributedsched.proxyChannelManager.d.ts
@ohos.dlpPermission.d.ts
@ohos.document.d.ts
@ohos.driver.deviceManager.d.ts
@ohos.effectKit.d.ts
@ohos.enterprise.EnterpriseAdminExtensionAbility.d.ts
@ohos.enterprise.accountManager.d.ts
@ohos.enterprise.adminManager.d.ts
@ohos.enterprise.applicationManager.d.ts
@ohos.enterprise.bluetoothManager.d.ts
@ohos.enterprise.browser.d.ts
@ohos.enterprise.bundleManager.d.ts
@ohos.enterprise.dateTimeManager.d.ts
@ohos.enterprise.deviceControl.d.ts
@ohos.enterprise.deviceInfo.d.ts
@ohos.enterprise.deviceSettings.d.ts
@ohos.enterprise.locationManager.d.ts
@ohos.enterprise.networkManager.d.ts
@ohos.enterprise.restrictions.d.ts
@ohos.enterprise.securityManager.d.ts
@ohos.enterprise.systemManager.d.ts
@ohos.enterprise.telephonyManager.d.ts
@ohos.enterprise.usbManager.d.ts
@ohos.enterprise.wifiManager.d.ts
@ohos.events.emitter.d.ts
@ohos.fastbuffer.d.ts
@ohos.faultLogger.d.ts
@ohos.file.AlbumPickerComponent.d.ets
@ohos.file.BackupExtensionContext.d.ts
@ohos.file.PhotoPickerComponent.d.ets
@ohos.file.RecentPhotoComponent.d.ets
@ohos.file.backup.d.ts
@ohos.file.cloudSync.d.ts
@ohos.file.cloudSyncManager.d.ts
@ohos.file.environment.d.ts
@ohos.file.fileAccess.d.ts
@ohos.file.fileExtensionInfo.d.ts
@ohos.file.fileuri.d.ts
@ohos.file.fs.d.ets
@ohos.file.fs.d.ts
@ohos.file.hash.d.ts
@ohos.file.keyManager.d.ts
@ohos.file.photoAccessHelper.d.ts
@ohos.file.picker.d.ts
@ohos.file.recent.d.ts
@ohos.file.securityLabel.d.ts
@ohos.file.sendablePhotoAccessHelper.d.ets
@ohos.file.statvfs.d.ts
@ohos.file.storageStatistics.d.ts
@ohos.file.trash.d.ts
@ohos.file.volumeManager.d.ts
@ohos.fileio.d.ts
@ohos.filemanagement.userFileManager.d.ts
@ohos.fileshare.d.ts
@ohos.font.d.ts
@ohos.fontManager.d.ts
@ohos.geoLocationManager.d.ts
@ohos.geolocation.d.ts
@ohos.graphics.colorSpaceManager.d.ts
@ohos.graphics.common2D.d.ts
@ohos.graphics.displaySync.d.ts
@ohos.graphics.drawing.d.ts
@ohos.graphics.hdrCapability.d.ts
@ohos.graphics.scene.d.ts
@ohos.graphics.sendableColorSpaceManager.d.ets
@ohos.graphics.text.d.ts
@ohos.graphics.uiEffect.d.ts
@ohos.hiAppEvent.d.ts
@ohos.hiSysEvent.d.ts
@ohos.hiTraceChain.d.ts
@ohos.hiTraceMeter.d.ts
@ohos.hichecker.d.ts
@ohos.hidebug.d.ts
@ohos.hilog.d.ts
@ohos.hiviewdfx.hiAppEvent.d.ts
@ohos.hiviewdfx.jsLeakWatcher.d.ts
@ohos.i18n.d.ts
@ohos.identifier.oaid.d.ts
@ohos.inputMethod.Panel.d.ts
@ohos.inputMethod.d.ts
@ohos.inputMethodEngine.d.ts
@ohos.inputMethodList.d.ets
@ohos.intl.d.ts
@ohos.logLibrary.d.ts
@ohos.matrix4.d.ets
@ohos.matrix4.d.ts
@ohos.measure.d.ts
@ohos.mediaquery.d.ets
@ohos.mediaquery.d.ts
@ohos.multimedia.audio.d.ts
@ohos.multimedia.audioHaptic.d.ts
@ohos.multimedia.avCastPicker.d.ets
@ohos.multimedia.avCastPickerParam.d.ts
@ohos.multimedia.avInputCastPicker.d.ets
@ohos.multimedia.avVolumePanel.d.ets
@ohos.multimedia.avsession.d.ts
@ohos.multimedia.camera.d.ts
@ohos.multimedia.cameraPicker.d.ts
@ohos.multimedia.drm.d.ts
@ohos.multimedia.image.d.ts
@ohos.multimedia.media.d.ts
@ohos.multimedia.movingphotoview.d.ts
@ohos.multimedia.sendableImage.d.ets
@ohos.multimedia.systemSoundManager.d.ts
@ohos.multimedia.videoProcessingEngine.d.ts
@ohos.multimodalAwareness.deviceStatus.d.ts
@ohos.multimodalAwareness.metadataBinding.d.ts
@ohos.multimodalAwareness.motion.d.ts
@ohos.multimodalAwareness.onScreen.d.ts
@ohos.multimodalAwareness.userStatus.d.ts
@ohos.multimodalInput.gestureEvent.d.ts
@ohos.multimodalInput.infraredEmitter.d.ts
@ohos.multimodalInput.inputConsumer.d.ts
@ohos.multimodalInput.inputDevice.d.ts
@ohos.multimodalInput.inputDeviceCooperate.d.ts
@ohos.multimodalInput.inputEvent.d.ts
@ohos.multimodalInput.inputEventClient.d.ts
@ohos.multimodalInput.inputMonitor.d.ts
@ohos.multimodalInput.intentionCode.d.ts
@ohos.multimodalInput.keyCode.d.ts
@ohos.multimodalInput.keyEvent.d.ts
@ohos.multimodalInput.mouseEvent.d.ts
@ohos.multimodalInput.pointer.d.ts
@ohos.multimodalInput.shortKey.d.ts
@ohos.multimodalInput.touchEvent.d.ts
@ohos.net.connection.d.ts
@ohos.net.eap.d.ts
@ohos.net.ethernet.d.ts
@ohos.net.http.d.ts
@ohos.net.mdns.d.ts
@ohos.net.netFirewall.d.ts
@ohos.net.networkSecurity.d.ts
@ohos.net.policy.d.ts
@ohos.net.sharing.d.ts
@ohos.net.socket.d.ts
@ohos.net.statistics.d.ts
@ohos.net.vpn.d.ts
@ohos.net.vpnExtension.d.ts
@ohos.net.webSocket.d.ts
@ohos.nfc.cardEmulation.d.ts
@ohos.nfc.controller.d.ts
@ohos.nfc.tag.d.ts
@ohos.notification.d.ts
@ohos.notificationManager.d.ts
@ohos.notificationSubscribe.d.ts
@ohos.pasteboard.d.ts
@ohos.pluginComponent.d.ts
@ohos.power.d.ts
@ohos.print.d.ts
@ohos.privacyManager.d.ts
@ohos.process.d.ts
@ohos.prompt.d.ets
@ohos.prompt.d.ts
@ohos.promptAction.d.ts
@ohos.reminderAgent.d.ts
@ohos.reminderAgentManager.d.ts
@ohos.request.cacheDownload.d.ts
@ohos.request.d.ts
@ohos.resourceManager.d.ts
@ohos.resourceschedule.backgroundProcessManager.d.ts
@ohos.resourceschedule.backgroundTaskManager.d.ts
@ohos.resourceschedule.deviceStandby.d.ts
@ohos.resourceschedule.systemload.d.ts
@ohos.resourceschedule.usageStatistics.d.ts
@ohos.resourceschedule.workScheduler.d.ts
@ohos.router.d.ets
@ohos.router.d.ts
@ohos.rpc.d.ts
@ohos.runningLock.d.ts
@ohos.scan.d.ets
@ohos.screen.d.ts
@ohos.screenLock.d.ts
@ohos.screenshot.d.ts
@ohos.secureElement.d.ts
@ohos.security.asset.d.ts
@ohos.security.cert.d.ts
@ohos.security.certManager.d.ts
@ohos.security.certManagerDialog.d.ts
@ohos.security.cryptoFramework.d.ts
@ohos.security.huks.d.ts
@ohos.security.securityGuard.d.ts
@ohos.selectionInput.SelectionExtensionAbility.d.ts
@ohos.selectionInput.SelectionExtensionContext.d.ts
@ohos.selectionInput.SelectionPanel.d.ts
@ohos.selectionInput.selectionManager.d.ts
@ohos.sendableResourceManager.d.ets
@ohos.sensor.d.ts
@ohos.settings.d.ts
@ohos.statfs.d.ts
@ohos.stationary.d.ts
@ohos.systemCapability.d.ts
@ohos.systemDateTime.d.ts
@ohos.systemParameterEnhance.d.ts
@ohos.systemTime.d.ts
@ohos.systemTimer.d.ts
@ohos.systemparameter.d.ts
@ohos.taskpool.d.ts
@ohos.telephony.call.d.ts
@ohos.telephony.data.d.ts
@ohos.telephony.esim.d.ts
@ohos.telephony.observer.d.ts
@ohos.telephony.radio.d.ts
@ohos.telephony.sim.d.ts
@ohos.telephony.sms.d.ts
@ohos.telephony.vcard.d.ts
@ohos.test.PerfTest.d.ts
@ohos.thermal.d.ts
@ohos.transfer.d.ets
@ohos.uiAppearance.d.ts
@ohos.uiExtensionHost.d.ets
@ohos.uiExtensionHost.d.ts
@ohos.update.d.ts
@ohos.uri.d.ts
@ohos.url.d.ts
@ohos.usb.d.ts
@ohos.usbManager.d.ts
@ohos.usbManager.serial.d.ts
@ohos.userIAM.faceAuth.d.ts
@ohos.userIAM.userAccessCtrl.d.ts
@ohos.userIAM.userAuth.d.ts
@ohos.userIAM.userAuthIcon.d.ets
@ohos.util.ArrayList.d.ts
@ohos.util.Deque.d.ts
@ohos.util.HashMap.d.ts
@ohos.util.HashSet.d.ts
@ohos.util.LightWeightMap.d.ts
@ohos.util.LightWeightSet.d.ts
@ohos.util.LinkedList.d.ts
@ohos.util.List.d.ts
@ohos.util.PlainArray.d.ts
@ohos.util.Queue.d.ts
@ohos.util.Stack.d.ts
@ohos.util.TreeMap.d.ts
@ohos.util.TreeSet.d.ts
@ohos.util.Vector.d.ts
@ohos.util.d.ets
@ohos.util.d.ts
@ohos.util.json.d.ts
@ohos.util.stream.d.ts
@ohos.vibrator.d.ts
@ohos.wallpaper.d.ts
@ohos.wantAgent.d.ts
@ohos.web.netErrorList.d.ts
@ohos.web.webview.d.ts
@ohos.wifi.d.ts
@ohos.wifiManager.d.ts
@ohos.wifiManagerExt.d.ts
@ohos.wifiext.d.ts
@ohos.window.d.ts
@ohos.window.floatingBall.d.ts
@ohos.worker.d.ts
@ohos.xml.d.ts
@ohos.zlib.d.ts
@system.app.d.ets
@system.app.d.ts
@system.battery.d.ts
@system.bluetooth.d.ts
@system.brightness.d.ts
@system.cipher.d.ts
@system.configuration.d.ts
@system.device.d.ts
@system.fetch.d.ts
@system.file.d.ts
@system.geolocation.d.ts
@system.mediaquery.d.ets
@system.mediaquery.d.ts
@system.network.d.ts
@system.notification.d.ts
@system.package.d.ts
@system.prompt.d.ets
@system.prompt.d.ts
@system.request.d.ts
@system.router.d.ets
@system.router.d.ts
@system.sensor.d.ts
@system.storage.d.ts
@system.vibrator.d.ts
permissions.d.ts
arkts
build-tools
kits
CODEOWNERS
.gitattributes
.gitignore
BUILD.gn
LICENCE.md
LICENSE
OAT.xml
README.md
README_zh.md
arkui_transformer.py
bundle.json
exists_path.py
interface_config.gni
ohos_copy_ets.py
process_internal.py
process_internal.pydeps
remove_internal.py
remove_internal.pydeps
remove_list.json
克隆/下载
@ohos.hidebug.d.ts 39.93 KB
一键复制 编辑 原始数据 按行查看 历史
yuhaoqiang 提交于 12天前 . 接口定义修改
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit PerformanceAnalysisKit
*/
/**
* Provide interfaces related to debugger access and obtaining CPU,
* memory and other virtual machine information during runtime for JS programs
*
* @namespace hidebug
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 8
*/
/**
* This module provides multiple methods for debugging and profiling applications. With these methods, you can obtain
* memory, CPU, GPU, and GC data, collect process trace and profiler data, and dump VM heap snapshots. Since most APIs
* of this module are both performance-consuming and time-consuming, and are defined based on the HiDebug module,
* you are advised to use these APIs only during the application debugging and profiling phases. If the APIs are
* required in other scenarios, evaluate the impact of the APIs on application performance.
*
* @namespace hidebug
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @atomicservice
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
declare namespace hidebug {
/**
* Obtains the total number of bytes occupied by the total space (the sum of uordblks and fordblks obtained from
* mallinfo) held by a process, which is measured by the memory allocator.
*
* @returns { bigint } Returns the total number of bytes occupied by the total space.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'8','1.2':'20'}
* @arkts 1.1&1.2
*/
function getNativeHeapSize(): bigint;
/**
* Obtains the total number of bytes occupied by the total allocated space (uordblks obtained from mallinfo) held by
* a process, which is measured by the memory allocator.
* @returns { bigint } Returns the total number of bytes occupied by the total allocated space.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'8','1.2':'20'}
* @arkts 1.1&1.2
*/
function getNativeHeapAllocatedSize(): bigint;
/**
* Obtains the total number of bytes occupied by the total free space (fordblks obtained from mallinfo)
* held by a process, which is measured by the memory allocator.
*
* @returns { bigint } Returns the size of the memory occupied by the free normal blocks held by the process, in bytes.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'8','1.2':'20'}
* @arkts 1.1&1.2
*/
function getNativeHeapFreeSize(): bigint;
/**
* Obtains the virtual set size used by the application process. This API is implemented by multiplying the value of
* size (number of memory pages) in the /proc/{pid}/statm node by the page size (4 KB per page).
*
* @returns { bigint } Returns the virtual set size used by the application process, in KB.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'11','1.2':'20'}
* @arkts 1.1&1.2
*/
function getVss(): bigint;
/**
* Obtains the size of the physical memory actually used by the application process. This API is implemented by
* summing up the values of **Pss** and **SwapPss** in the /proc/{pid}/smaps_rollup** node.
*
* @returns { bigint } Returns the size of the physical memory actually used by the application process, in KB.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'8','1.2':'20'}
* @arkts 1.1&1.2
*/
function getPss(): bigint;
/**
* Obtains the size of the shared dirty memory of a process. This API is implemented by reading the value of
* Shared_Dirty in the /proc/{pid}/smaps_rollup node.
*
* @returns { bigint } Returns the size of the shared dirty memory of the process, in KB.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'8','1.2':'20'}
* @arkts 1.1&1.2
*/
function getSharedDirty(): bigint;
/**
* Obtains the size of the private dirty memory of a process. This API is implemented by reading the value of
* Private_Dirty in the /proc/{pid}/smaps_rollup node.
*
* @returns { bigint } Returns the size of the private dirty memory of the process, in KB.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'9','1.2':'20'}
* @arkts 1.1&1.2
*/
function getPrivateDirty(): bigint;
/**
* Obtains the CPU usage of a process.
*
* @returns { number } Returns the CPU usage of the process.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'9','1.2':'20'}
* @arkts 1.1&1.2
*/
function getCpuUsage(): number;
/**
*
* Starts the VM profiling method. startProfiling(filename: string) and stopProfiling() are called in pairs.
* startProfiling(filename: string) always occurs before stopProfiling(). You are advised not to call either of these
* methods repeatedly. Otherwise, an exception may occur. The generated file is in the files folder under the
* application directory. Such as "/data/accounts/account_0/appdata/[package name]/files/cpuprofiler-xxx.json"
*
* @param { string } filename - User-defined file name of the sampling data. The .json file is generated
* in the files directory of the application based on the specified file name.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 8
* @deprecated since 9
* @useinstead ohos.hidebug/hidebug.startJsCpuProfiling
*/
function startProfiling(filename: string): void;
/**
* Stops the VM profiling method. stopProfiling() and startProfiling(filename: string) are called in pairs.
* startProfiling(filename: string) always occurs before stopProfiling(). You are advised not to call either of these
* methods repeatedly. Otherwise, an exception may occur. It takes effect only when the CPU profiler is turned on.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 8
* @deprecated since 9
* @useinstead ohos.hidebug/hidebug.stopJsCpuProfiling
*/
function stopProfiling(): void;
/**
* Exports the VM heap data and generates a filename.heapsnapshot file.
* The input parameter is a user-defined file name, excluding the file suffix.
* The generated file is in the files folder under the application directory.
* Such as "/data/accounts/account_0/appdata/[package name]/files/xxx.heapsnapshot".
*
* @param { string } filename - Indicates the user-defined file name, excluding the file suffix.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 8
* @deprecated since 9
* @useinstead ohos.hidebug/hidebug.dumpJsHeapData
*/
function dumpHeapData(filename: string): void;
/**
* Starts the VM profiling method. startJsCpuProfiling(filename: string) and stopJsCpuProfiling() are called in pairs.
* startJsCpuProfiling(filename: string) always occurs before stopJsCpuProfiling(). You are advised not to call either
* of these methods repeatedly. Otherwise, an exception may occur.
*
* @param { string } filename - User-defined heap file name. The .heapsnapshot file is generated in the files
* directory of the application based on the specified file name.
* @throws {BusinessError} 401 - the parameter check failed, Parameter type error
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 9
*/
function startJsCpuProfiling(filename: string): void;
/**
* Stops the VM profiling method. stopJsCpuProfiling() and startJsCpuProfiling(filename: string) are called in pairs.
* startJsCpuProfiling() always occurs before stopJsCpuProfiling(). You are advised not to call either of these
* methods repeatedly. Otherwise, an exception may occur. It takes effect only when the CPU profiler is turned on
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 9
*/
function stopJsCpuProfiling(): void;
/**
* Exports the heap data.
* The input parameter is a user-defined file name, excluding the file suffix.
* The generated file is in the files folder under the application directory.
*
* @param { string } filename - User-defined file name of the sampling data. The .heapsnapshot file is generated
* in the files directory of the application based on the specified file name.
* @throws {BusinessError} 401 - the parameter check failed, Parameter type error.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 9
*/
function dumpJsHeapData(filename: string): void;
/**
* Obtains system service information.
* It need dump permission.
* This API can be called only by system application.
*
* @permission ohos.permission.DUMP
* @param { number } serviceid - Obtains the system service information based on the specified service ID.
* @param { number } fd - File descriptor to which data is written by the API.
* @param { Array<string> } args - Parameter list of the Dump API of the system service.
* @throws {BusinessError} 401 - the parameter check failed,Possible causes:
* 1.the parameter type error
* 2.the args parameter is not string array.
* @throws {BusinessError} 11400101 - ServiceId invalid. The system ability does not exist.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'9','1.2':'20'}
* @arkts 1.1&1.2
*/
function getServiceDump(serviceid: number, fd: number, args: Array<string>): void;
/**
* Obtains the CPU usage of the system.
*
* @returns { number } Returns the CPU usage of the system.
* @throws { BusinessError } 11400104 - The status of the system CPU usage is abnormal.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
function getSystemCpuUsage(): number;
/**
* Describes the CPU usage of a thread.
*
* @interface ThreadCpuUsage
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
interface ThreadCpuUsage {
/**
* Thread id
*
* @type { number }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
threadId: number;
/**
* CPU usage of the thread.
*
* @type { number }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
cpuUsage: number;
}
/**
* Obtains the CPU usage of application threads.
*
* @returns { ThreadCpuUsage[] } Returns the CPU usage of all threads of the current application process.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
function getAppThreadCpuUsage(): ThreadCpuUsage[];
/**
* Describes the system memory information, including the total memory, free memory, and available memory.
*
* @interface SystemMemInfo
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
interface SystemMemInfo {
/**
* Total memory of the system, in KB. The value of this parameter is obtained by reading the value of
* MemTotal in the /proc/meminfo node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
totalMem: bigint;
/**
* Free memory of the system, in KB. The value of this parameter is obtained by reading the value of
* MemFree in the /proc/meminfo node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
freeMem: bigint;
/**
* Available memory of the system, in KB. The value of this parameter is obtained by reading the value of
* MemAvailable in the /proc/meminfo node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
availableMem: bigint;
}
/**
* Obtains system memory information. This API is implemented by reading data from the /proc/meminfo node.
*
* @returns { SystemMemInfo } Returns the system memory information.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
function getSystemMemInfo(): SystemMemInfo;
/**
* Describes memory information of the application process.
*
* @interface NativeMemInfo
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
interface NativeMemInfo {
/**
* Size of the occupied physical memory (including the proportionally allocated memory occupied by the shared
* library), in KB. The value of this parameter is obtained by summing up the values of Pss and SwapPss in the
* /proc/{pid}/smaps_rollup node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
pss: bigint;
/**
* Size of the occupied virtual memory (including the memory occupied by the shared library), in KB. The value of
* this parameter is obtained by multiplying the value of size (number of memory pages) in the /proc/{pid}/statm
* node by the page size (4 KB per page).
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
vss: bigint;
/**
* Size of the occupied physical memory (including the memory occupied by the shared library), in KB.
* The value of this parameter is obtained by reading the value of Rss in the /proc/{pid}/smaps_rollup node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
rss: bigint;
/**
* Size of the shared dirty memory, in KB. The value of this parameter is obtained by reading the value of
* Shared_Dirty in the /proc/{pid}/smaps_rollup node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
sharedDirty: bigint;
/**
* Size of the private dirty memory, in KB. The value of this parameter is obtained by reading the value of
* Private_Dirty in the /proc/{pid}/smaps_rollup node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
privateDirty: bigint;
/**
* Size of the shared clean memory, in KB. The value of this parameter is obtained by reading the value of
* Shared_Clean in the /proc/{pid}/smaps_rollup node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
sharedClean: bigint;
/**
* Size of the private clean memory, in KB. The value of this parameter is obtained by reading the value of
* Private_Clean in the /proc/{pid}/smaps_rollup node.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
privateClean: bigint;
}
/**
* Obtains the memory information of the application process. This API is implemented by reading data from the
* /proc/{pid}/smaps_rollup and /proc/{pid}/statm node.
*
* @returns { NativeMemInfo } Returns the memory information of the application process.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
function getAppNativeMemInfo(): NativeMemInfo;
/**
* Defines the memory limit of the application process.
*
* @interface MemoryLimit
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
interface MemoryLimit {
/**
* Limit on the resident set size, in KB.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
rssLimit: bigint;
/**
* Limit on the virtual memory size, in KB.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
vssLimit: bigint;
/**
* Limit on the JS VM heap size of the calling thread, in KB.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
vmHeapLimit: bigint;
/**
* Size limit of the JS heap memory of the process, in KB.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
vmTotalHeapSize: bigint;
}
/**
* Obtains the memory limit of an application process.
*
* @returns { MemoryLimit } Returns the memory limit of the application process.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
function getAppMemoryLimit(): MemoryLimit;
/**
* Obtains the memory information of the application process asynchronous. This API is implemented
* by reading data from the /proc/{pid}/smaps_rollup and /proc/{pid}/statm node.
*
* @returns { Promise<NativeMemInfo> } Returns the memory information of the application process.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
function getAppNativeMemInfoAsync(): Promise<NativeMemInfo>;
/**
* Obtains the memory information of the application process, with optional caching to improve performance.
* The cached value remains valid for 5 minutes. This API is implemented by reading data from the
* /proc/{pid}/smaps_rollup and /proc/{pid}/statm node.
*
* @param { boolean } [forceRefresh] Whether to retrieve fresh data and immediate refresh the cached value.
* The default value is false.
* @returns { NativeMemInfo } Returns the memory information of the application process.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
function getAppNativeMemInfoWithCache(forceRefresh?: boolean): NativeMemInfo;
/**
* Describes the VM memory information.
*
* @interface VMMemoryInfo
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
interface VMMemoryInfo {
/**
* Total heap size of the current VM, in KB.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
totalHeap: bigint;
/**
* Heap size used by the current VM, in KB.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
heapUsed: bigint;
/**
* Size of all array objects of the current VM, in KB.
*
* @type { bigint }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
allArraySize: bigint;
}
/**
* Obtains VM memory information.
*
* @returns { VMMemoryInfo } Returns the VM memory information.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
function getAppVMMemoryInfo(): VMMemoryInfo;
/**
* Describes types of trace collection threads, including the main thread and all threads.
*
* @enum { number }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
enum TraceFlag {
/**
* The main thread of the application.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
MAIN_THREAD = 1,
/**
* All threads of the application.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
ALL_THREADS = 2
}
/**
* Enumerates the tags used in trace collection.
*
* @namespace tags
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
namespace tags {
/**
* Ability Manager tag. The corresponding HiTrace command is tagName:ability.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const ABILITY_MANAGER: number;
/**
* ArkUI development framework. The corresponding HiTrace command is tagName:ace.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const ARKUI: number;
/**
* JSVM VM. The corresponding HiTrace command is tagName:ark.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const ARK: number;
/**
* Bluetooth. The corresponding HiTrace command is tagName:bluetooth.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const BLUETOOTH: number;
/**
* Common library subsystem. The corresponding HiTrace command is tagName:commonlibrary.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const COMMON_LIBRARY: number;
/**
* Distributed hardware device management. The corresponding HiTrace command is tagName:devicemanager.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const DISTRIBUTED_HARDWARE_DEVICE_MANAGER: number;
/**
* Distributed audio. The corresponding HiTrace command is tagName:daudio.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const DISTRIBUTED_AUDIO: number;
/**
* Distributed camera. The corresponding HiTrace command is tagName:dcamera.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const DISTRIBUTED_CAMERA: number;
/**
* Distributed data management. The corresponding HiTrace command is tagName:distributeddatamgr.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const DISTRIBUTED_DATA: number;
/**
* Distributed hardware framework. The corresponding HiTrace command is tagName:dhfwk.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const DISTRIBUTED_HARDWARE_FRAMEWORK: number;
/**
* Distributed input. The corresponding HiTrace command is tagName:dinput.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const DISTRIBUTED_INPUT: number;
/**
* Distributed screen. The corresponding HiTrace command is tagName:dscreen.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const DISTRIBUTED_SCREEN: number;
/**
* Distributed scheduler. The corresponding HiTrace command is tagName:dsched.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const DISTRIBUTED_SCHEDULER: number;
/**
* FFRT task. The corresponding HiTrace command is tagName:ffrt.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const FFRT: number;
/**
* File management system. The corresponding HiTrace command is tagName:filemanagement.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const FILE_MANAGEMENT: number;
/**
* Global resource management. The corresponding HiTrace command is tagName:gresource.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const GLOBAL_RESOURCE_MANAGER: number;
/**
* Graphics module. The corresponding HiTrace command is tagName:graphic.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const GRAPHICS: number;
/**
* HDF subsystem. The corresponding HiTrace command is tagName:hdf.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const HDF: number;
/**
* MISC module. The corresponding HiTrace command is tagName:misc.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const MISC: number;
/**
* Multi-modal input module. The corresponding HiTrace command is tagName:multimodalinput.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const MULTIMODAL_INPUT: number;
/**
* Network. The corresponding HiTrace command is tagName:net.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const NET: number;
/**
* Notification module. The corresponding HiTrace command is tagName:notification.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const NOTIFICATION: number;
/**
* Nweb. The corresponding HiTrace command is tagName:nweb.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const NWEB: number;
/**
* OHOS. The corresponding HiTrace command is tagName:ohos.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const OHOS: number;
/**
* Power management. The corresponding HiTrace command is tagName:power.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const POWER_MANAGER: number;
/**
* RPC. The corresponding HiTrace command is tagName:rpc.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const RPC: number;
/**
* System capability management. The corresponding HiTrace command is tagName:samgr.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const SAMGR: number;
/**
* Window management. The corresponding HiTrace command is tagName:window.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const WINDOW_MANAGER: number;
/**
* Audio module. The corresponding HiTrace command is tagName:zaudio.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const AUDIO: number;
/**
* Camera module. The corresponding HiTrace command is tagName:zcamera.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const CAMERA: number;
/**
* Image module. The corresponding HiTrace command is tagName:zimage.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const IMAGE: number;
/**
* Media module. The corresponding HiTrace command is tagName:zmedia.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
const MEDIA: number;
}
/**
* Starts automatic trace collection in a specified scope. This API is a supplement to the HiTrace module.
* The performance consumption during trace collection increases with the collection scope. Therefore, before
* using this API, you are advised to run the hitrace command to capture trace logs and select the key scope
* of trace collection to improve the API performance.
*
* @param { number[] } tags - Scope for trace collection. For details, see tags.
* @param { TraceFlag } flag - For details, see TraceFlag.
* @param { number } limitSize - Limit on the trace file size, in bytes. The maximum size of a single file is 500 MB.
* @returns { string } Returns the path of the trace file.
* @throws { BusinessError } 401 - Invalid argument, Possible causes:
* 1.The limit parameter is too small
* 2.The parameter is not within the enumeration type
* 3.The parameter type error or parameter order error
* @throws { BusinessError } 11400102 - Capture trace already enabled.
* @throws { BusinessError } 11400103 - No write permission on the file.
* @throws { BusinessError } 11400104 - Abnormal trace status.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
function startAppTraceCapture(tags: number[], flag: TraceFlag, limitSize: number): string;
/**
* Stops application trace collection. Use startAppTraceCapture() to start collection before calling this API.
* If this API is called before trace collection or it is repeatedly called, an exception will occur.
*
* @throws { BusinessError } 11400104 - The status of the trace is abnormal.
* @throws { BusinessError } 11400105 - No capture trace running.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since arkts {'1.1':'12','1.2':'20'}
* @arkts 1.1&1.2
*/
function stopAppTraceCapture(): void;
/**
* Describes the key-value pair used to store GC statistics. This type does not support multi-thread operations.
* If this type is operated by multiple threads at the same time in an application, use a lock for it.
*
* @typedef { Record<string, number> } GcStats
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
type GcStats = Record<string, number>;
/**
* Obtains the memory usage of ArkTS objects in the virtual machine.
*
* @returns { bigint } Returns the memory usage of ArkTS objects.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 21
*/
function getAppVMObjectUsed(): bigint;
/**
* Obtains all system GC statistics.
*
* @returns { GcStats } Returns the system GC statistics.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
function getVMRuntimeStats(): GcStats;
/**
* Obtains the specified system GC statistics based on parameters.
*
* @param { string } item - statistical item.
* @returns { number } Returns the item of the GC statistics to be obtained.
* @throws { BusinessError } 401 - Possible causes:
* 1. Invalid parameter, a string parameter required.
* 2. Invalid parameter, unknown property.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
function getVMRuntimeStat(item: string): number;
/**
* Sets the number of FDs, number of threads, JS memory, or native memory limit of the application.
*
* @param { string } type - resource type. It could be pss_memory、js_heap、fd、or thread.
* @param { int } value - For different resource type, values could have different meaning:
* 1.For pss_memory, it means the baseline PSS memory size for the application,
* system memory control will be triggered if exceed the value too much.
* 2.For js_heap, it means the percentage of the used JS heap memory to the maximum limit exceed
* which heap dump will be triggered if enableDebugLog set as true, it can be set between 85 and 95.
* 3.For fd, it means the maximum fd number can be opened.
* 4.For thread, it means the maximum thread number can be created.
* @param { boolean } enableDebugLog - Whether to enable external debug log. Default is false, pls make sure set
* it as true only in gray release because collecting debug log will cost too much cpu or memory.
* @throws { BusinessError } 401 - Invalid argument, Possible causes:
* 1.The limit parameter is too small
* 2.The parameter is not in the specified type
* 3.The parameter type error or parameter order error
* @throws { BusinessError } 11400104 - Set limit failed due to remote exception
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @atomicservice
* @since 12
*/
function setAppResourceLimit(type: string, value: int, enableDebugLog: boolean): void;
/**
* Obtains the debugging state of an application process. If the Ark or native layer of the application process is in
* debugging state, true is returned. Otherwise, false is returned.
*
* @returns { boolean } true if the application is in the debugging state.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 12
*/
function isDebugState(): boolean;
/**
* Obtains the size of the GPU memory. This API uses a promise to return the result.
*
* @returns { Promise<number> } Returns the size of the GPU memory, in KB.
* @throws { BusinessError } 11400104 - Failed to get the application memory due to a remote exception.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @atomicservice
* @since arkts {'1.1':'14','1.2':'20'}
* @arkts 1.1&1.2
*/
function getGraphicsMemory(): Promise<number>;
/**
* Obtains the size of the GPU memory synchronously.
*
* @returns { number } Returns the size of the GPU memory, in KB.
* @throws { BusinessError } 11400104 - Failed to get the application memory due to a remote exception.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @atomicservice
* @since arkts {'1.1':'14','1.2':'20'}
* @arkts 1.1&1.2
*/
function getGraphicsMemorySync(): number;
/**
* Dumps the original heap snapshot of the VM for the current thread. The API uses a promise to return the path of the
* .rawheap file. You can use rawheap-translator to convert the generated file into a .heapsnapshot file for parsing.
* The generated file will be stored in a folder within the application directory. However, since this file is usually
* large, the system imposes restrictions on the frequency and number of calls to this function. Consequently, you
* might fail to obtain the dump file due to quota limitations. These failures will persist until the quota is
* regularly refreshed by the system. Therefore, it is advisable to delete the file immediately after you have
* finished processing it. Moreover, it is recommended that you use this function in the gray - release version.
*
* @param { boolean } needGC - Whether GC is required when a heap snapshot is dumped. The default value is true.
* If this parameter is not specified, GC is triggered before dumping.
* @returns { Promise<string> } Returns the path of the generated snapshot file.
* @throws { BusinessError } 11400106 - Quota exceeded.
* @throws { BusinessError } 11400107 - Fork operation failed.
* @throws { BusinessError } 11400108 - Failed to wait for the child process to finish.
* @throws { BusinessError } 11400109 - Timeout while waiting for the child process to finish.
* @throws { BusinessError } 11400110 - Disk remaining space too low.
* @throws { BusinessError } 11400111 - Napi interface call exception.
* @throws { BusinessError } 11400112 - Repeated data dump.
* @throws { BusinessError } 11400113 - Failed to create dump file.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @atomicservice
* @since 18
*/
function dumpJsRawHeapData(needGC?: boolean): Promise<string>;
/**
* GwpAsan Options.
*
* @interface GwpAsanOptions
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
interface GwpAsanOptions {
/**
* Control whether to enable GWP-ASan every time
*
* @type { ?boolean }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
alwaysEnabled?: boolean;
/**
* sample rate of GWP-ASAN
*
* @type { ?number }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
sampleRate?: number;
/**
* the max simutaneous allocations of GWP-ASAN
*
* @type { ?number }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
maxSimutaneousAllocations?: number;
}
/**
* Enable the GWP-ASAN grayscale of your application.
* @param { GwpAsanOptions } [options] - The options of GWP-ASAN grayscale.
* @param { number } [duration] - The duration days of GWP-ASAN grayscale.
* @throws { BusinessError } 11400114 - The number of GWP-ASAN applications of this device overflowed after last boot.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
function enableGwpAsanGrayscale(options?: GwpAsanOptions, duration?: number): void;
/**
* Disable the GWP-ASAN grayscale of your application.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
function disableGwpAsanGrayscale(): void;
/**
* Obtain the remaining days of GWP-ASan grayscale for your application.
*
* @returns { number } The remaining days of GWP-ASan grayscale.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
function getGwpAsanGrayscaleState(): number;
/**
* Trimming level of raw heap snapshot.
*
* @enum { number }
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
enum JsRawHeapTrimLevel {
/**
* Basic heap snapshot trimming(e.g. reducing content of string object).
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
TRIM_LEVEL_1 = 0,
/**
* On top of level 1 trimming, object address size has been additionally trimmed.
* Please use latest version of rawheap-translator tool for parsing and converting
* .rawheap into .heapsnapshot file. Conversion process may fail when legacy tool is utilized.
*
* A higher trimming level means a longer time needed to generate the .rawheap file.
* Ensure that this duration falls below the app freeze threshold.
*
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
TRIM_LEVEL_2 = 1,
}
/**
* Sets the raw heap snapshot trimming level for the current process.
* @param { JsRawHeapTrimLevel } level - The trimming level of raw heap snapshot.
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
* @since 20
*/
function setJsRawHeapTrimLevel(level: JsRawHeapTrimLevel): void;
}
export default hidebug;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/interface_sdk-js.git
git@gitee.com:openharmony/interface_sdk-js.git
openharmony
interface_sdk-js
interface_sdk-js
master

搜索帮助