Comments (5)
另外一种 不太完美的方案
在页面输出的时候过滤
把小于0.1秒的删掉
在run.php文件中 index函数
//从53行开始
$resArray = $result['results'];
foreach ($resArray as $k=>&$v){
$dataArray = $v->toArray();
$wt = $dataArray['profile']['main()']['wt'];
//100000 = 100毫秒 = 0.1秒
if($wt < 100000){
unset($resArray[$k]);
}
}
$this->set(array(
'paging' => $paging,
'base_url' => 'home',
'runs' => $resArray,
'date_format' => $this->_app->config('date.format'),
'search' => $search,
'has_search' => strlen(implode('', $search)) > 0,
'title' => $title
));
from xhgui-branch.
如果数字比较大 比如0.3秒 部分页面可能就空白了 因为一页 只有25条.
在数据插入到mongo前 过滤 是正确的方法
但是
我没找到那个汇总的wt时间 请问是怎么做的?
from xhgui-branch.
难道你把所有的函数wt执行时间,汇总在一起,然后报错到mongodb的?
为何打印插入mongodb前的$data看不到汇总的时间。
from xhgui-branch.
找到一个关键词
wall_times
from xhgui-branch.
我已经改好了 哈哈.
from xhgui-branch.
Related Issues (20)
- 时间显示为UTC时间 HOT 2
- 每条数据点进去报404 HOT 3
- 是否支持令行运行的php脚本? HOT 1
- $_SERVER['REQUEST_TIME'] 的类型不同会导致排序出现问题
- 有些图表不显示 HOT 4
- 中文乱码问题
- 页面点击链接一直在加载中 HOT 1
- 请求的列表中,偶尔时间排序不对,需要怎么解决 HOT 3
- 给个建议在IP列上加一个IP地址查看地址的,我觉得挺好用 HOT 3
- bug HOT 2
- 看readme文档,作者在重构? HOT 1
- php install.php 报错 HOT 1
- 希望可以支持多域名展示和搜索 HOT 1
- composer install Error! HOT 1
- Slim Application Error
- 改进求助 HOT 1
- 火焰图不显示,如何排查 HOT 2
- Class 'MongoDB\Driver\Manager' not found 必须使用mongo模式吗 ?
- /run/view?id=xxx,此地址加载慢,无法加载到数据 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xhgui-branch.