Zakelly commented on code in PR #24279: URL: https://github.com/apache/flink/pull/24279#discussion_r1497538955
########## docs/content.zh/docs/ops/debugging/flame_graphs.md: ########## @@ -25,38 +25,39 @@ specific language governing permissions and limitations under the License. --> -# Flame Graphs +# 火焰图 -[Flame Graphs](http://www.brendangregg.com/flamegraphs.html) are a visualization that effectively surfaces answers to questions like: -- Which methods are currently consuming CPU resources? -- How does consumption by one method compare to the others? -- Which series of calls on the stack led to executing a particular method? +[Flame Graphs](http://www.brendangregg.com/flamegraphs.html) 是一种有效的可视化工具,可以回答以下问题: + +- 目前哪些方法正在消耗CPU资源? +- 一个方法的消耗与其他方法相比如何? +- 哪一系列的堆栈调用导致了特定方法的执行? {{< img src="/fig/flame_graph_on_cpu.png" class="img-fluid" width="90%" >}} {{% center %}} Flame Graph {{% /center %}} -Flame Graphs are constructed by sampling stack traces a number of times. Each method call is presented by a bar, where the length of the bar is proportional to the number of times it is present in the samples. +火焰图是通过多次采样堆栈跟踪来构建的。每个方法调用都由一个条形图表示,其中条形图的长度与其在样本中出现的次数成比例。 -Starting with Flink 1.13, Flame Graphs are natively supported in Flink. In order to produce a Flame Graph, navigate to the job graph of a running job, select an operator of interest and in the menu to the right click on the Flame Graph tab: +从 Flink 1.13 版本开始,Flink 原生支持火焰图。要生成一个火焰图,请导航到正在运行的作业图,选择感兴趣的算子,并在右侧菜单中点击"火焰图"选项卡: Review Comment: 选项卡名字就别翻译了。。。因为flink ui上是英文 ```suggestion 从 Flink 1.13 版本开始支持火焰图。要生成一个火焰图,请导航到正在运行的作业图,选择感兴趣的算子,并在右侧菜单中点击 "Flame Graph" 选项卡: ``` ########## docs/content.zh/docs/ops/debugging/flame_graphs.md: ########## @@ -25,38 +25,39 @@ specific language governing permissions and limitations under the License. --> -# Flame Graphs +# 火焰图 -[Flame Graphs](http://www.brendangregg.com/flamegraphs.html) are a visualization that effectively surfaces answers to questions like: -- Which methods are currently consuming CPU resources? -- How does consumption by one method compare to the others? -- Which series of calls on the stack led to executing a particular method? +[Flame Graphs](http://www.brendangregg.com/flamegraphs.html) 是一种有效的可视化工具,可以回答以下问题: + +- 目前哪些方法正在消耗CPU资源? Review Comment: ```suggestion - 目前哪些方法正在消耗 CPU 资源? ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
