f-spot r3971 - in trunk/src: . Imaging
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3971 - in trunk/src: . Imaging
- Date: Thu, 22 May 2008 10:58:49 +0000 (UTC)
Author: sdelcroix
Date: Thu May 22 10:58:49 2008
New Revision: 3971
URL: http://svn.gnome.org/viewvc/f-spot?rev=3971&view=rev
Log:
Adding some debugging timers
Modified:
trunk/src/Imaging/XmpFile.cs
trunk/src/main.cs
Modified: trunk/src/Imaging/XmpFile.cs
==============================================================================
--- trunk/src/Imaging/XmpFile.cs (original)
+++ trunk/src/Imaging/XmpFile.cs Thu May 22 10:58:49 2008
@@ -2,6 +2,8 @@
using System.Collections;
using SemWeb;
+using FSpot.Utils;
+
namespace FSpot.Xmp {
public class XmpFile : SemWeb.StatementSource, SemWeb.StatementSink
{
@@ -35,7 +37,7 @@
store.Import (reader);
//Dump ();
} catch (System.Exception e) {
- System.Console.WriteLine (e.ToString ());
+ Log.DebugFormat ("Caught an exception :{0}", e.ToString ());
}
}
Modified: trunk/src/main.cs
==============================================================================
--- trunk/src/main.cs (original)
+++ trunk/src/main.cs Thu May 22 10:58:49 2008
@@ -173,12 +173,14 @@
try {
+ uint timer = Log.InformationTimerStart ("Initializing DBUs");
try {
NDesk.DBus.BusG.Init();
} catch (Exception e) {
throw new ApplicationException ("F-Spot cannot find the Dbus session bus. Make sure dbus is configured properly or start a new session for f-spot using \"dbus-launch f-spot\"", e);
}
- Log.Information ("Initializing Mono.Addins");
+ Log.DebugTimerPrint (timer, "DBusInitialization took {0}");
+ uint ma_timer = Log.InformationTimerStart ("Initializing Mono.Addins");
AddinManager.Initialize (FSpot.Global.BaseDirectory);
AddinManager.Registry.Update (null);
SetupService setupService = new SetupService (AddinManager.Registry);
@@ -189,6 +191,7 @@
setupService.Repositories.RemoveRepository (repo.Url);
}
setupService.Repositories.RegisterRepository (null, "http://addins.f-spot.org/" + maj_version, false);
+ Log.DebugTimerPrint (ma_timer, "Mono.Addins Initialization took {0}");
bool create = true;
int retry_count = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]