← Back to team overview

zeitgeist team mailing list archive

[Branch ~zeitgeist/zeitgeist/bluebird] Rev 238: Add a little bit of profiling

 

------------------------------------------------------------
revno: 238
committer: Michal Hruby <michal.mhr@xxxxxxxxx>
branch nick: bluebird
timestamp: Mon 2011-09-12 14:56:31 +0200
message:
  Add a little bit of profiling
modified:
  src/zeitgeist-daemon.vala


--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird

Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/zeitgeist-daemon.vala'
--- src/zeitgeist-daemon.vala	2011-09-05 10:27:02 +0000
+++ src/zeitgeist-daemon.vala	2011-09-12 12:56:31 +0000
@@ -158,10 +158,13 @@
                 uint storage_state, uint num_events, uint result_type,
                 BusName sender) throws Error
         {
-            return Events.to_variant (engine.find_events (
+            var timer = new Timer ();
+            var events = engine.find_events (
                 new TimeRange.from_variant (time_range),
                 Events.from_variant (event_templates),
-                storage_state, num_events, result_type, sender));
+                storage_state, num_events, result_type, sender);
+            debug ("%s executed in %f seconds", Log.METHOD, timer.elapsed ());
+            return Events.to_variant (events);
         }
 
         public uint32[] insert_events (