You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by yu...@apache.org on 2023/02/03 04:01:45 UTC

[yunikorn-site] branch master updated: [YUNIKORN-1516] Adding Chinese translation of System Rest API (#258)

This is an automated email from the ASF dual-hosted git repository.

yuteng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git


The following commit(s) were added to refs/heads/master by this push:
     new a451c8b06 [YUNIKORN-1516] Adding Chinese translation of System Rest API (#258)
a451c8b06 is described below

commit a451c8b06829fa8723bcf00eab5ee2f26f87b109
Author: wusamzong <48...@users.noreply.github.com>
AuthorDate: Fri Feb 3 12:01:40 2023 +0800

    [YUNIKORN-1516] Adding Chinese translation of System Rest API (#258)
    
    Update Chinese translation of System REST API doc
---
 .../current/api/system.md                          | 225 +++++++++++++++++++++
 1 file changed, 225 insertions(+)

diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/api/system.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/api/system.md
new file mode 100644
index 000000000..83337cf4b
--- /dev/null
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/api/system.md
@@ -0,0 +1,225 @@
+---
+id: system
+title: 系統
+---
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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.
+-->
+
+这些端点是用于提供資訊給[pprof](https://github.com/google/pprof)分析工具。
+
+## pprof
+
+**位置(URL)** : `/debug/pprof/`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```text
+/debug/pprof/
+
+Types of profiles available:
+Count	Profile
+273	allocs
+0	block
+0	cmdline
+78	goroutine
+273	heap
+0	mutex
+0	profile
+29	threadcreate
+0	trace
+full goroutine stack dump
+Profile Descriptions:
+
+allocs: A sampling of all past memory allocations
+block: Stack traces that led to blocking on synchronization primitives
+cmdline: The command line invocation of the current program
+goroutine: Stack traces of all current goroutines
+heap: A sampling of memory allocations of live objects. You can specify the gc GET parameter to run GC before taking the heap sample.
+mutex: Stack traces of holders of contended mutexes
+profile: CPU profile. You can specify the duration in the seconds GET parameter. After you get the profile file, use the go tool pprof command to investigate the profile.
+threadcreate: Stack traces that led to the creation of new OS threads
+trace: A trace of execution of the current program. You can specify the duration in the seconds GET parameter. After you get the trace file, use the go tool trace command to investigate the trace.
+```
+
+## 堆 (Heap)
+
+**位置(URL)** : `/debug/pprof/heap`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## 线程创建
+
+**位置(URL)** : `/debug/pprof/threadcreate`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## Goroutine
+
+**位置(URL)** : `/debug/pprof/goroutine`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## 分配 (Allocations)
+
+**位置(URL)** : `/debug/pprof/allocs`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## 阻塞分析 (Block)
+
+**位置(URL)** : `/debug/pprof/block`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## 互斥锁分析 (Mutex)
+
+**位置(URL)** : `/debug/pprof/mutex`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## 命令行参数 (Cmdline)
+
+**位置(URL)** : `/debug/pprof/cmdline`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## 简介
+
+**位置(URL)** : `/debug/pprof/profile`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## Symbol
+
+**位置(URL)** : `/debug/pprof/symbol`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```
+
+## 跟踪(Trace)
+
+**位置(URL)** : `/debug/pprof/trace`
+
+**方法(Method)** : `GET`
+
+### 成功时的响应
+
+**回传代码** : `200 OK`
+
+**示例**
+
+```proto
+// 来自proto的二进制数据
+```