zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #04411
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 351: add events marshalling
------------------------------------------------------------
revno: 351
committer: Seif Lotfy <seif@xxxxxxxxx>
branch nick: zeitgeist
timestamp: Wed 2011-12-21 22:15:18 +0100
message:
add events marshalling
modified:
extensions/benchmark.vala
--
lp:zeitgeist
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'extensions/benchmark.vala'
--- extensions/benchmark.vala 2011-12-21 21:09:57 +0000
+++ extensions/benchmark.vala 2011-12-21 21:15:18 +0000
@@ -74,13 +74,19 @@
var find_events_elapsed = get_events_elapsed + find_event_ids_elapsed;
+ var marsh_events_timer = new Timer ();
+ var marsh_events = Events.to_variant(events);
+ var marsh_events_elapsed = marsh_events_timer.elapsed();
+
extra_data.insert("find_event_ids",
new Variant.double(find_event_ids_elapsed));
extra_data.insert("get_events",
new Variant.double(get_events_elapsed));
extra_data.insert("find_events",
- new Variant.double(find_events_elapsed ));
- extra_data.insert("events", Events.to_variant(events));
+ new Variant.double(find_events_elapsed));
+ extra_data.insert("marsh_events",
+ new Variant.double(marsh_events_elapsed));
+ extra_data.insert("events", marsh_events);
return extra_data;
}