Whether you are writing or using a DataEngine it can often be very nice to see what the heck is going on in there. Today I had the need for doing just this while making some improvements to the Contour activity switcher in Plasma Active. So I whipped up a rather small but very useful (as it turned out) class called DataEngineTracker. You simply hand it a DataEngine and an option QObject parent and it will print out every source that comes, goes or gets updated.
For lack of a better place, I plopped it into the kdeexamples repository so that others (and the future me ;) can easily include it into their project (DataEngine, Plasmoid, application, ..) and see what a given DataEngine is doing. It's BSD licensed, so it can be used pretty much anywhere.
In today's case with Plasma Active, it showed up an unintentional update was happening on the activity thumbnails for the switcher every second. If you had a lot of activities, this added up quite a bit. We've also killed some other performance issues and the polish is really coming together in general now in all those little ways that one probably won't even notice in the final release .. but certainly would if they weren't there. ;)
On a side note, kdeexamples now contains over 7,000 lines of code. Sweet.
Thursday, September 01, 2011
Subscribe to:
Post Comments (Atom)

3 comments:
Hi,
I asked you this in one of our other blog posts, but you didn't answer me ... wht is the state of Plasma Active? In the beginning it was said that Plasma Active images will be updated every 2 weeks, but I haven't found where they are. If I remember correctly it is supposed to be on some companies web site, nut that image wasn't updated in quite some time...
Also from what I remember the Techbase article has a link to "latest image" but it points to this web site which has the old image.
I would need an image for WeTab so I can see what this project is all about :)
@Djura: "wht is the state of Plasma Active?"
exceptionally good at the moment, actually.
"In the beginning it was said that Plasma Active images will be updated every 2 weeks, but I haven't found where they are."
the packages are actually being updated more on a daily basis. the Balsam live image was also just updated today. Sebastian should be blogging about this (and updating links as needed) tomorrow
"I would need an image for WeTab so I can see what this project is all about :)"
the Balsam image is the easiest way to do so with a non-install preview. right now, installing OpenSUSE 11.4 on the machine first and then following the instructions on the wiki is the best option for installing it directly on the device.
On that topic, what ever happened to the Plasma Active roadmap (or rather, subway map ;-) which you started a few months ago?
Post a Comment