Comments (9)
Duration of what?
from yii2-debug.
ahh, now I understand why it isnt in there. It can not be called "duration" because that would imply a duration of the specific logcategory in the message.
Lets call it something else: Time to Next Log (TTNL) or something else.
from yii2-debug.
we have Yii::beginProfile() and Yii::endProfile() for that so you can measure timings for some parts of the app.
from yii2-debug.
I am aware of that, but this is a totally different way of performance optimization. Let me put it this way:
A) active optimization: implement Yii::beginProfile() and Yii::endProfile()
B) passive optimization: compare timeframes in log to see performance issues
from yii2-debug.
@dynasource Does #54 somehow solve this?
from yii2-debug.
@Deele: you've create a JS solution? Why in Js ;)? If it computes the duration, it would solve this topic, but its rather unconventional to 'not' do this by PHP.
from yii2-debug.
@dynasource Because, that is easier, and it works already. It is not precise, but allows to search faster when you have hundreds of log entries, and you want to find that one that causes 2 second loading time. Total time between logs does not match total time mentioned in header, that gives me hint, that to create trustful solution, would require through knowledge in debug module and Yii internals.
from yii2-debug.
well, I tried your solution. The JS looks OK, but durations are connected to the wrong lines, it should have an offset of -1.
Although its quite useful in the current form, I don't know if its logical from an architectural perspective. I would not expect a JS solution. Secondary, if Gridviews are applied with pagination, this solution wouldnt do.
from yii2-debug.
Should be PHP-based.
from yii2-debug.
Related Issues (20)
- Please rewrite comments HOT 4
- Store data in a cache HOT 3
- User switching is not working when using custom User model id HOT 1
- Mailpanel should store message in request data HOT 1
- Feature: Show repeating DB calls from the same function (regardless of the parameters) HOT 8
- User switch not working if User model has JSON/Array column HOT 2
- Don't use table-danger to indicate excessive queries HOT 3
- DB summary view uses $criticalQueryThreshold directly instead of checking via isQueryCountCritical() method HOT 2
- Mail panel broken for Symfonimailer HOT 1
- List of queries in debug panel is empty when Connection::enableProfiling is false
- Display transaction begin/end in debug panel database queries list
- DbPanel::excessiveCallerThreshold should be disabled by default
- Object of class Symfony\Component\Mime\Header\Headers could not be converted to string HOT 2
- update irc link
- update github folder link
- update docs folder links
- Switching user back to admin user is not possible when using access rules
- update src folder links
- update root folder links
- Generating a url with a trailing slash
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 yii2-debug.