如何对单个TypoSript对象生成进行基准测试? [英] How to benchmark single TypoSript Object generation?
问题描述
我想对单个TypoScript对象生成进行基准测试以控制性能,也许可以使用某些stdWrap方法吗?
I would like to benchmark single TypoScript object generation to control the performance, is it possible, probably, with some stdWrap methods ?
TS对象的示例,我想对其进行基准测试:
Example of TS objects, which I would like to benchmark :
测试1
page.10 = RECORDS
page.10 {
tables = pages
source = 1
dontCheckPid = 1
conf.pages = TEXT
conf.pages.field = title
}
测试2
page.20 = CONTENT
page.20 {
table = tt_content
select {
pidInList = 0
recursive = 99
where = uid = 1
}
}
我需要每个对象的生成时间和触发查询的数量.
I need each object generation time and quantity of fired queries.
推荐答案
我想可以通过扩展来完成.我猜想有可能钩住(或xclass)数据库层(就像DBAL一样).在扩展程序中,您可以通过$this->cObj->cObjGetSingle($this->conf['test1'],$this->conf['test1.'],'test1');
I guess it could be done via Extension. I guess there is a possibility to hook in (or xclass) the Database Layer (like DBAL does). In your extension you could then just test the different TypoScript setups via $this->cObj->cObjGetSingle($this->conf['test1'],$this->conf['test1.'],'test1');
也许看看t3lib_timeTrack,也许在那里跟踪的内容就足够了.但是AFAIK跟踪的所有内容都可以通过管理面板使用(选中所有复选框).
Perhaps have a look at t3lib_timeTrack, may be it is enough what is tracked there. But AFAIK everything which is tracked is available via Admin-Panel (check all checkboxes).
这篇关于如何对单个TypoSript对象生成进行基准测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!