🔎 性能分析工具
大约 1 分钟
概述
服务器性能是一个至关重要的评判标准,我们提供了性能分析的工具,使开发者能对引擎的性能情况做全局的掌握。本文将讲述如何使用我们提供的工具,对引擎的性能进行分析。
在之前的文章中提到了GUIConsole、WebConsole以及PyCluster集群控制等工具,我们会从引擎性能、脚本性能、网络状态、事件处理等几个维度,把工具如何使用进行讲解。
引擎性能:
GUIConsole:
选中profile选项卡,选择cprofile,可以查看到。

WebConsole:
选择性能分析面板,连接要查看的组件。

PyCluster
在脚本控制台使用:cprofile
命令即可查看。
脚本性能:
GUIConsole:
选中profile选项卡,选择pyprofile,可以查看到。

WebConsole:
选择性能分析面板,连接要查看的组件。

PyCluster
在脚本控制台使用:pyprofile
命令即可查看。
网络状态:
GUIConsole:
选中profile选项卡,选择networkprofile,可以查看到。

WebConsole:
选择性能分析面板,连接要查看的组件。

PyCluster
在脚本控制台使用:mercuryprofile
命令即可查看。
事件处理分析:
GUIConsole:
选中profile选项卡,选择eventprofile,可以查看到。

WebConsole:
选择性能分析面板,连接要查看的组件。

PyCluster
在脚本控制台使用:eventprofile
命令即可查看。