Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Nov 3, 2024
1 parent 7b5e48d commit d5cfa0f
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 120 deletions.
2 changes: 1 addition & 1 deletion cndocs/fabric-native-components-android.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: fabric-native-components-android
title: 'Fabric Native Modules: Android'
title: 'Fabric 原生 UI 组件:Android'
---

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
Expand Down
2 changes: 1 addition & 1 deletion cndocs/fabric-native-components-ios.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: fabric-native-components-ios
title: 'Fabric Native Components: iOS'
title: 'Fabric 原生组件:iOS'
---

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
Expand Down
2 changes: 1 addition & 1 deletion cndocs/fabric-native-components.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: fabric-native-components-introduction
title: Fabric Native Components Introduction
title: Fabric 原生 UI 组件
---

import Tabs from '@theme/Tabs';
Expand Down
2 changes: 0 additions & 2 deletions cndocs/optimizing-javascript-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ module.exports = {
};
```

See the documentation for [`getTransformOptions` in Metro](https://metrobundler.dev/docs/configuration#gettransformoptions) for more details on setting up and fine-tuning your inline `require`s.

查看 Metro 文档中的 [`getTransformOptions`](https://metrobundler.dev/docs/configuration#gettransformoptions) 以获取有关设置和微调内联 `require` 的更多详细信息。

## 高级:使用随机访问模块包(非 Hermes)
Expand Down
4 changes: 2 additions & 2 deletions cndocs/profiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ title: Profiling

## Profiling Android UI Performance with `systrace`

Android supports 10k+ different phones and is generalized to support software rendering: the framework architecture and need to generalize across many hardware targets unfortunately means you get less for free relative to iOS. But sometimes, there are things you can improve -- and many times it's not native code's fault at all!
Android 支持 10k+ 不同的手机,并且为了支持软件渲染,框架架构需要跨多个硬件目标进行泛化。不幸的是,这意味着你相对于 iOS 获得的免费资源较少。但有时,你可以进行改进——而且很多时候根本不是原生代码的问题!

The first step for debugging this jank is to answer the fundamental question of where your time is being spent during each 16ms frame. For that, we'll be using a standard Android profiling tool called `systrace`.
调试这种卡顿的第一步是回答每个 16ms 帧中你的时间花费在哪里。为此,我们将使用一个标准的 Android 性能分析工具 `systrace`

`systrace` is a standard Android marker-based profiling tool (and is installed when you install the Android platform-tools package). Profiled code blocks are surrounded by start/end markers which are then visualized in a colorful chart format. Both the Android SDK and React Native framework provide standard markers that you can visualize.

Expand Down
54 changes: 0 additions & 54 deletions cndocs/speeding-ci-builds.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: fabric-native-components-android
title: 'Fabric Native Modules: Android'
title: 'Fabric 原生 UI 组件:Android'
---

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: fabric-native-components-ios
title: 'Fabric Native Components: iOS'
title: 'Fabric 原生组件:iOS'
---

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: fabric-native-components-introduction
title: Fabric Native Components Introduction
title: Fabric 原生 UI 组件
---

import Tabs from '@theme/Tabs';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ module.exports = {
};
```

See the documentation for [`getTransformOptions` in Metro](https://metrobundler.dev/docs/configuration#gettransformoptions) for more details on setting up and fine-tuning your inline `require`s.

查看 Metro 文档中的 [`getTransformOptions`](https://metrobundler.dev/docs/configuration#gettransformoptions) 以获取有关设置和微调内联 `require` 的更多详细信息。

## 高级:使用随机访问模块包(非 Hermes)
Expand Down
54 changes: 0 additions & 54 deletions cnwebsite/versioned_docs/version-0.76/speeding-ci-builds.md

This file was deleted.

0 comments on commit d5cfa0f

Please sign in to comment.