Codeigniter 启用分析器并打开输出缓存
当还启用输出缓存时,我对输出基准分析器有问题,但基准在视图中不可视化。
我正在做。
class Home extends MX_Controller {
function Home()
{
parent::__construct();
$this->output->cache(20000);
$this->output->enable_profiler(TRUE);
}
我如何可视化基准测试以查看启用缓存的页面的速度有多快?
i have problem with output benchmark profiler when also output cache is enabled,the benchmark does is not visualized in views.
I'm doing.
class Home extends MX_Controller {
function Home()
{
parent::__construct();
$this->output->cache(20000);
$this->output->enable_profiler(TRUE);
}
how can i visualize the benchmark to see how faster is the page with cache on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了使探查器正常工作,您需要设置标记,用作对应用程序进行基准测试的起点和终点。
因为,引用手册:
无论您想在哪里开始使用(您不需要初始化此类):
并且,当您想结束它时:
然后结果:
您可以使用任意多个,当然只需给它们一个不同的名称即可。
In order for the profiler to work you need to set markers, used as a start and end point to benchmark your application.
Because, quoting from the manual:
Wherever you want to start use (you don't need to initialize this class):
And, when you want to end it:
Then the result:
You can use as many as you want, just give them a different name of course.