Understanding KVO usage in applicaitons

12 views
Skip to first unread message

Martin Häcker

unread,
Feb 7, 2011, 6:17:06 AM2/7/11
to sproutc...@googlegroups.com
Hi all,

we have severe performance problems in our app and I was quite at a loss
to understand where they are actually originating. So I started a small
project that tries to extract observer / notificaton / binding dag from
an application to help me understand what actually trigges what.

This has already helped me tremendously to figure out some performance
bugs and I guess will help even more to find places of bad architecture
in our code.

I'ts not at all perfect, I think it also can't log quite some things
that I haven't needed yet, but it may be something that's a really
interesting instrument so I'd like to share it.

Maybe it even makes sense to replace the current observer logging by
this completely as I haven't found it very useful yet.

Here's the hearth of it:
<https://github.com/rbu/sproutcore/blob/1-4-stable/frameworks/runtime/system/kvo_logging.js>

You can find the commits that implement it here
<https://github.com/rbu/sproutcore/commit/b31e8fb09904f35e8e2ba7f6a32508e16ca36ac3>,

<https://github.com/rbu/sproutcore/commit/9fd15c27b302076e0d927d0cd9221da8ad093cae>
and
<https://github.com/rbu/sproutcore/commit/1b6c782980ee6d5ab1514b6b5eb5662f14d4a466>

Regards,
Martin

Reply all
Reply to author
Forward
0 new messages