/ohos5.0/docs/zh-cn/application-dev/dfx/ |
H A D | uinput.md | 87 [smooth time]移动时间,默认值:1000ms,取值范围:1 ~ 15000ms。 179 [total time]可选参数,默认值为3000ms,取值范围:3000 ~ 15000ms。 254 # 按下"a"键并保持100ms后抬起。 269 # 按下"a"键并在100ms内重复输入。 284 # 按下键盘‘a’键间隔500ms后释放。 339 [smooth time]可选参数,默认值为1000ms,取值范围:1 ~ 15000ms。 340 [-k keep time]可选参数,默认值为0ms,取值范围:0 ~ 60000ms。 435 [-k keep time]可选参数,默认值为0ms,取值范围:0 ~ 60000ms。 436 [smooth time]可选参数,默认值为1000ms,取值范围:1 ~ 15000ms。 506 [interval time]间隙时间:默认值200ms,取值范围:1 ~ 250ms。 [all …]
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | audio-video-synchronization.md | 25 1. 为了衡量音画同步的性能,用对应音频和视频帧实际播放时间的差值作为数值指标,数值大于0ms表示声音提前画面,小于0ms表示声音落后画面。 26 2. 最大卡顿时长,单帧图像停滞时间超过100ms的,定义为卡顿一次,连续测试5分钟。 31 | [-80ms,25ms] | 无法察觉 | 32 | [-125ms,45ms] | 能够察觉 33 | [-185ms,90ms] | 无法接受 64 综合上述三种方案的优缺点对比,此处采用主流的连续播放音频帧方案。使用音频播放位置作为主时间参考,并将视频播放位置与其匹配,使音画同步指标达到用户无法察觉的[-80ms,25ms]范围。 69 最终实现音画同步[-80ms,25ms]的效果。 130 - [ , -40ms) 视频帧较晚时,丢弃此帧。 131 - [-40ms, 0ms) 视频帧直接送显。 132 - [0ms, ) 视频帧较早,根据业务需要选择渐进同步。 [all …]
|
H A D | node_custom_component_reusable_pool.md | 291 | 创建耗时(优化前) | 39.5ms | 35.7ms | 29.8ms | 26.5ms | 292 | 创建耗时(优化后) | 40.3ms | 14.8ms | 17.8ms | 18.3ms | 361 3. 通过SmartPerfHost工具抓取Trace图,从图3中可以看到提前进行组件预创建后,上一章节中前两个页面的加载耗时已经缩短到了25ms左右,和第三个页面的耗时(18ms)相比差距已明显缩… 367 4. 然后查看冷启动耗时,如图4所示,加载Index页面(H:load page: pages/Index(id:1))耗时大概144ms左右。 399 1. 通过常规预创建抓取Trace,获取单个组件预创建耗时,示例代码中单个组件预创建耗时最长在1ms左右。 435 // 当帧尾空闲时间大于1ms时,执行预创建。 436 // 此处空闲时间限制设置了1ms,即空闲时间少于1ms时,本帧不再进行组件的预创建,而是将帧回调传递到下一帧,开发者可以根据自身业务、组件复杂度进行设置,预留足够的空闲时间。 490 …ace图,可以查看冷启动耗时。如下图所示,加载Index页面(H:load page: pages/Index(id:1))耗时大概8ms左右,只有优化前耗时(144ms)的1/18,性能提升明显… 512 | 优化前 | 144ms | 514 | 优化后 | 8ms | [all …]
|
H A D | performance-dynamic-import.md | 84 …ms(从DispatchTouchEvent标签到sendCommands标签,即从点击进入页面到通知系统开始渲染页面)。其中,load page标签表示加载整个页面的时间,共耗时19ms。继续向… 130 …取Trace,可以得到图2。通过图中泳道可以看到,使用动态import后,主页面加载耗时只有7.9ms(图2中红框所示),其中load page标签耗时只有4.3ms左右,相较于常规加载,耗时减少… 146 | 常规加载 | 22.9ms | 12ms | 147 | 动态加载 | 7.9ms | 0ms |
|
H A D | delay_related_performance.md | 11 滑动页面占位符加载完成时延的标准为40ms。 47 滑动操作占位符完成时延类问题的通用定位思路为先确认时延起止点,然后看起止点时延是否超标准的40ms,没有超过就是达标,超过就需要进一步分析Trace耗时主要发生在什么地方,主要分析网络耗时和帧渲染耗… 125 1. 根据起始点确定问题Trace起始点和终止点,如下图加载完成时延总共700ms。 135 …sponse体现在应用中则是解析后刷新数据,LazyForEach绑定的IDataSource会触发刷新监听,通过OnDataReloaded找出刷新数据Trace点,可得到网络请求耗时177ms。 140 …生成PixelMap。加载网络图片时,发送图片地址网络请求,接着将返回的数据解码为Image组件中的PixelMap。通过搜索CreateImagePixelMap搜索创建图像像素图,耗时14ms。 154 占位图加载完成时延,一般受首次网络请求时延影响,如果二次加载图片完成时延<=40ms,也算达到标准。 210 分析Trace滑动过程中的每一帧,发现在GridItem加载过程中使用了自定义动画,查看JSAnimation动画参数duration为150ms,说明此动画完成时间为150ms,影响图片的加载效果。
|
H A D | reasonable-using-animation.md | 166 …TabBarStyle样式时,切换页面时默认加载300ms的隐式动画,如果开发场景不需要该动画效果,会因默认加载导致页面跳转完成时延变长,此时可手动设置`animationDuration`减少动… 185 // 设置Tabs页面跳转的动画时长为1000ms 212 // 设置Tabs页面跳转的动画时长为100ms 224 | 优化前 1000ms | 优化后 100ms … 228 上述示例通过减少`animationDuration`数值,减少Tabs切换完成时延。当数值设置为0且TabBar不为BottomTabBarStyle样式时,隐式动效延时为默认的300ms。开发者… 292 | 示例 | 动效耗时(ms) | 297 上述示例在提高滚动速度到10000vp/s后,相比100vp/s减少了200ms的动画时延。开发者可根据实际场景适当增加滚动速度,在不影响页面效果的情况下减少页面完成时延,提高应用性能。
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-shell-net-ping6.md | 55 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 56 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 57 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 58 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms 61 rtt min/avg/max = 0/0.00/0 ms 68 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 69 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 70 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 73 rtt min/avg/max = 0/0.00/0 ms 81 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms [all …]
|
H A D | kernel-mini-basic-time.md | 103 UINT32 ms; 106 /* 10000ms转换为tick */ 110 /* 100tick转换为ms */ 111 ms = LOS_Tick2MS(100); 112 printf("ms = %d \n", ms); 148 ms = 1000
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-net-ping6.md | 55 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 56 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 57 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 58 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms 61 rtt min/avg/max = 0/0.00/0 ms 68 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 69 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 70 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 73 rtt min/avg/max = 0/0.00/0 ms 81 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms [all …]
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-page-transition-animation.md | 44 // 定义页面进入时的效果,从左侧滑入,时长为1200ms,无论页面栈发生push还是pop操作均可生效 47 // 定义页面退出时的效果,向左侧滑出,时长为1000ms,无论页面栈发生push还是pop操作均可生效 88 // 定义页面进入时的效果,从右侧滑入,时长为1200ms,页面栈发生push操作时该效果才生效 91 // 定义页面进入时的效果,从左侧滑入,时长为1200ms,页面栈发生pop操作时该效果才生效 94 // 定义页面退出时的效果,向左侧滑出,时长为1000ms,页面栈发生push操作时该效果才生效 97 // 定义页面退出时的效果,向右侧滑出,时长为1000ms,页面栈发生pop操作时该效果才生效 106 // 定义页面进入时的效果,从右侧滑入,时长为1000ms,页面栈发生push操作时该效果才生效 109 // 定义页面进入时的效果,从左侧滑入,时长为1000ms,页面栈发生pop操作时该效果才生效 112 // 定义页面退出时的效果,向左侧滑出,时长为1200ms,页面栈发生push操作时该效果才生效 115 // 定义页面退出时的效果,向右侧滑出,时长为1200ms,页面栈发生pop操作时该效果才生效 [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/utest/common/ |
H A D | persistent_storage_test.ts | 17 let ms = new MockStorage("./src/utest/resources/test.db"); 18 PersistentStorage.configureBackend(ms); 25 …test("PersistentStorage 'existingPropToPersist' value retrieved from MockStorage correct", ms.get(… 58 …test("PersistentStorage 'writeToDb' value retrieved from MockStorage correct", ms.get<string>("wri… 59 …test("PersistentStorage 'numberToDb' value retrieved from MockStorage correct", ms.get("numberToDb… 67 test("MockStorage 'writeToDb' value deleted", ms.get("writeToDb") == undefined); 68 test("MockStorage 'numberToDb' value deleted", ms.get("numberToDb") == undefined); 75 …test("MockStorage 'newProp' value retrieved from MockStorage correct", ms.get("newProp") == "new p…
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_time.c | 42 uint64_t ms; in OsalGetTime() local 48 ms = LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetTime() 50 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime() 51 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime() 91 void OsalMSleep(uint32_t ms) in OsalMSleep() argument 93 LOS_Msleep(ms); in OsalMSleep() 101 void OsalMDelay(uint32_t ms) in OsalMDelay() argument 103 LOS_Mdelay(ms); in OsalMDelay()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/ |
H A D | nstackx_timer.c | 24 uint64_t ms; in GetTimeDiffMs() local 32 ms = ((uint64_t)etv->tv_sec - (uint64_t)stv->tv_sec - 1) * NSTACKX_MILLI_TICKS; in GetTimeDiffMs() 33 …ms += (NSTACKX_NANO_TICKS + (uint64_t)etv->tv_nsec - (uint64_t)stv->tv_nsec) / NSTACKX_MICRO_TICKS; in GetTimeDiffMs() 35 ms = ((uint64_t)etv->tv_sec - (uint64_t)stv->tv_sec) * NSTACKX_MILLI_TICKS; in GetTimeDiffMs() 36 ms += ((uint64_t)etv->tv_nsec - (uint64_t)stv->tv_nsec) / NSTACKX_MICRO_TICKS; in GetTimeDiffMs() 38 if (ms > UINT32_MAX) { in GetTimeDiffMs() 39 ms = UINT32_MAX; in GetTimeDiffMs() 41 return (uint32_t)ms; in GetTimeDiffMs()
|
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/plugin/ |
H A D | plugin_time.h | 49 int64_t ms = hTime / HST_USECOND; in HstTime2Us32() local 50 if (INT32_MAX < ms || INT32_MIN > ms) { // overflow in HstTime2Us32() 53 return static_cast<int32_t>(ms); in HstTime2Us32() 70 inline bool Ms2HstTime (int64_t ms, int64_t& hTime) in Ms2HstTime() argument 72 if (INT64_MAX / HST_MSECOND < ms || INT64_MIN / HST_MSECOND > ms) { // overflow in Ms2HstTime() 75 hTime = ms * HST_MSECOND; in Ms2HstTime()
|
/ohos5.0/docs/en/application-dev/dfx/ |
H A D | uinput.md | 87 …ecifies the moving time, whose default value is 1000 ms. The value can be set between 1 and 15000 … 179 …parameter is optional, whose default value is 3000 ms. The value can be set between 3000 and 15000… 199 # Set the interval between two click events to 500 ms. 339 …] parameter is optional, whose default value is 1000 ms. The value can be set between 1 and 15000 … 340 …ime] parameter is optional, whose default value is 0 ms. The value can be set between 0 and 60000 … 374 The value of [Press time] cannot be less than 500 ms. 435 …ime] parameter is optional, whose default value is 0 ms. The value can be set between 0 and 60000 … 436 …] parameter is optional, whose default value is 1000 ms. The value can be set between 1 and 15000 … 473 The value of [Press time] cannot be less than 500 ms. 506 The value of [interval time] can be set between 1 ms and 250 ms. The default value is 200 ms. [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/ |
H A D | osal_time.c | 41 uint64_t ms; in OsalGetTime() local 47 ms = LOS_TickCountGet() * (HDF_KILO_UNIT / LOSCFG_BASE_CORE_TICK_PER_SECOND); in OsalGetTime() 49 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime() 50 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime() 90 void OsalMSleep(uint32_t ms) in OsalMSleep() argument 92 LOS_Msleep(ms); in OsalMSleep()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/osal/src/ |
H A D | osal_time.c | 42 uint64_t ms; in OsalGetTime() local 48 ms = PRT_TickGetCount() * HDF_KILO_UNIT / OS_TICK_PER_SECOND; in OsalGetTime() 50 time->sec = ms / HDF_KILO_UNIT; in OsalGetTime() 51 time->usec = (ms % HDF_KILO_UNIT) * HDF_KILO_UNIT; in OsalGetTime() 91 void OsalMSleep(uint32_t ms) in OsalMSleep() argument 93 uint32_t ticks = (uint32_t)(((uint64_t)ms * OS_TICK_PER_SECOND) / 1000); in OsalMSleep()
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | gc-introduction.md | 120 - **说明:** 对年轻代和部分老年代空间做整理压缩,其他空间做sweep清理。触发频率比年轻代GC低很多,由于会做全量mark,因此GC时间会比年轻代GC长,单次耗时约5ms~10ms。 253 C03F00/ArkCompiler: [gc] TotalGC: 160.626 ms 254 C03F00/ArkCompiler: Initialize: 0.179 ms 255 C03F00/ArkCompiler: Mark: 159.204 ms 256 C03F00/ArkCompiler: MarkRoots: 6.925 ms 257 C03F00/ArkCompiler: ProcessMarkStack: 158.99 ms 258 C03F00/ArkCompiler: Sweep: 0.957 ms 259 C03F00/ArkCompiler: Finish: 0.277 ms 281 C03F00/ArkCompiler: CompressGC max pause: 2672.33 ms 282 C03F00/ArkCompiler: CompressGC min pause: 160.626 ms [all …]
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ |
H A D | Resource_Schedule_Service_Process_Management_Specifications_ZH.md | 69 1. 插件执行耗时尽量不能超过1ms,超过1ms即会产生相关WRNING警告,在开发插件过程中,需要尽量消除此类情况,插件需要上库到系统,则需要提供monkey测试中,每24H的WARNING<= … 198 标准:<10ms。 241 … | {"pid"=?,"uid"=?,"bundleName"="?"} | <10ms | soc_perf; … 244 … | {"pid"=?,"uid"=?,"bundleName"="?"} | <10ms | frame_awar… 245 …?,"uid"=?,"bundleName"="?", "windowId"=?,"windowType"=?,displayId=?} | <10ms | soc_perf ;… 249 … | 无 | <10ms | soc_perf … 250 … | 无 | <10ms | soc_perf … 251 …mal end | 无 | <10ms | soc_perf …
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js-lite/ |
H A D | js-lite-components-common-animation.md | 11 … | 0 | 定义动画播放的延迟时间。支持的单位为[s(秒)\|ms(毫秒) ],默认单位为ms,格式为:1000ms或1s。 | 12 … | 0 | 定义一个动画周期。支持的单位为[s(秒)\|ms(毫秒) ],默认单位为ms,格式为:1000ms或1s。<b…
|
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_csync.cpp | 366 constexpr auto eps = 3ms; in WaitUntilTimeoutTest() 396 constexpr auto eps = 3ms; in WaitUtilFlagTest_1() 454 constexpr auto eps = 3ms; in WaitForTest_1() 506 constexpr auto eps = 3ms; in WaitForTest_3() 609 ffrt::this_task::sleep_for(20ms); in TryLockTest() 614 ffrt::this_task::sleep_for(2ms); in TryLockTest() 638 ffrt::this_task::sleep_for(20ms); in LockSharedTest() 643 ffrt::this_task::sleep_for(2ms); in LockSharedTest() 668 ffrt::this_task::sleep_for(20ms); in TryLockSharedTest() 673 ffrt::this_task::sleep_for(2ms); in TryLockSharedTest() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/ |
H A D | softbus_adapter_timer.c | 56 int SoftBusStartTimer(void *timerId, unsigned int ms) in SoftBusStartTimer() argument 62 if (osTimerStart(timerId, ms * osKernelGetTickFreq() / MS_PER_SECOND) != osOK) { in SoftBusStartTimer() 85 int SoftBusSleepMs(unsigned int ms) in SoftBusSleepMs() argument 87 osDelay(ms * osKernelGetTickFreq() / MS_PER_SECOND); in SoftBusSleepMs() 126 uint64_t ms = (uint64_t)time.tv_sec * MS_PER_SECOND + (uint64_t)time.tv_usec / US_PER_MSECOND; in SoftBusGetSysTimeMs() local 127 return ms; in SoftBusGetSysTimeMs()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/ |
H A D | event.c | 80 static int32_t EventWaitInternal(Event *event, int64_t ms) in EventWaitInternal() argument 83 if (ms < 0) { in EventWaitInternal() 89 timeout.tv_sec = now.tv_sec + ms / MS_PER_SECOND; in EventWaitInternal() 90 timeout.tv_nsec = now.tv_usec * MS_PER_SECOND + (ms % MS_PER_SECOND) * NS_PER_MS; in EventWaitInternal() 97 int32_t EventWait(Event *event, int64_t ms) in EventWait() argument 106 err = EventWaitInternal(event, ms); in EventWait()
|
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr/adapter/cmsis/ |
H A D | time_adapter.c | 21 int32 WDT_Start(uint32 ms) in WDT_Start() argument 23 return WDT_Reset(ms); in WDT_Start() 26 int32 WDT_Reset(uint32 ms) in WDT_Reset() argument 28 (void)ms; in WDT_Reset()
|
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/ |
H A D | time_adapter.c | 22 int32 WDT_Start(uint32 ms) in WDT_Start() argument 24 return WDT_Reset(ms); in WDT_Start() 27 int32 WDT_Reset(uint32 ms) in WDT_Reset() argument 29 (void)ms; in WDT_Reset()
|