[Interest] Event inspection after delivery
Konstantin Shegunov
kshegunov at gmail.com
Sun Jul 22 23:25:37 CEST 2018
On Sun, Jul 22, 2018 at 7:08 PM, Sérgio Martins <iamsergio at gmail.com> wrote:
>
> For statistics you probably want to use tracepoints [1].
[1] http://lists.qt-project.org/pipermail/development/
> 2017-February/028762.html
>
On Sun, Jul 22, 2018 at 8:13 PM, Giuseppe D'Angelo via Interest <
interest at qt-project.org> wrote:
>
> And in particular this patch:
>
> https://codereview.q <https://codereview.qt-project.org/#/c/229165/>
*ETW may refer to: East to West, an American Contemporary Christian music
> duo active 1993–1997; Eastern Trombone Workshop, one of the largest annual
> ...*
t-project.org/#/c/229165/ <https://codereview.qt-project.org/#/c/229165/>
Thanks, but please correct me if I'm wrong though. Isn't the purpose of
this to profile and/or trace around the code for optimization purposes?
Can I get realtime information while my program's running and can I get
this in release mode through an API of sorts?
I'm trying to balance out worker objects in a thread pool, so I'd need to
process this in-code.
On Sun, Jul 22, 2018 at 7:05 PM, Thiago Macieira <thiago.macieira at intel.com>
wrote:
>
> > Yes, I read the warning, that's why I posted here. My follow up
> question(s)
> > would then be:
> > How will the fine grained control that notify() gives be replaced, or
> will
> > it be at all?
>
> Unknown. That needs to be developed.
>
> The problem in question is that notify() is a virtual function in
> QCoreApplication, which means we can't thread-safely deliver events in
> auxiliary threads while the main thread is either constructing or
> destructing
> the QCoreApplication. My inkling is to simply ignore the QCoreApplication
> when
> outside the main thread. Hence the warning.
>
> > And is considering event post-processing (akin to the event filter which
> > goes before the QObject::event) sensible?
>
> It hasn't been necessary for the last 25 years.
>
> > I realize mine is somewhat of an edge case, but I'd be surprised if no
> one
> > had needed that before ...
>
> Surprise!
>
Okay, fair enough.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180723/2d4366b1/attachment.html>
More information about the Interest
mailing list