Code Monkey home page Code Monkey logo

Comments (9)

samdark avatar samdark commented on June 20, 2024

Duration of what?

from yii2-debug.

dynasource avatar dynasource commented on June 20, 2024

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.

cebe avatar cebe commented on June 20, 2024

we have Yii::beginProfile() and Yii::endProfile() for that so you can measure timings for some parts of the app.

from yii2-debug.

dynasource avatar dynasource commented on June 20, 2024

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.

Deele avatar Deele commented on June 20, 2024

@dynasource Does #54 somehow solve this?

from yii2-debug.

dynasource avatar dynasource commented on June 20, 2024

@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.

Deele avatar Deele commented on June 20, 2024

@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.

dynasource avatar dynasource commented on June 20, 2024

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.

samdark avatar samdark commented on June 20, 2024

Should be PHP-based.

from yii2-debug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.