High CPU usage of Frameworkd

Michael Tansella michael-tansella at gmx.de
Mon Mar 30 16:56:59 CEST 2009


Hi,

I have written a tool in C++/Qt and if it connects to DBUS and enables the 
GYPSY, frameworkd is using permanently 50% of CPU which seems very high to me. 
Is this normal? Due to python? Or am I doing something wrong. I'm using SHR 
testing but with FSO it's the same.

Code Snippets:


/// create proxy objects for method calls 
QString ServiceBusName = "org.freedesktop.Gypsy";
QString ObjectPath = "/org/freedesktop/Gypsy" ;
QString MethodPath = "";
GPSInterface = new QDBusInterface(	ServiceBusName,
								ObjectPath,
								MethodPath, 
								QDBusConnection::systemBus() );
	
GPSRescourceInterface = new QDBusInterface( ServiceBusName,
									 ObjectPath,
									 "org.freesmartphone.Resource",
									 QDBusConnection::systemBus() );
											 
GPSDeviceInterface = new QDBusInterface( ServiceBusName,
									 ObjectPath,
									 "org.freedesktop.Gypsy.Device",
									 QDBusConnection::systemBus() );

GPSOusagedInterface = new QDBusInterface( ServiceBusName,
									 "/org/freesmartphone/Usage",
									 "org.freesmartphone.Usage",
									 QDBusConnection::systemBus() );

/// enable GPS
void MokoGPS::StartDevice()
{
	GPSDeviceInterface->call("Start");
	GPSRescourceInterface->call("Enable");
	qDebug()<<"GPS device started \n";
}




More information about the community mailing list