This document lists the activities during startup and the time taken for each in milliseconds. The profiling was done for a cold-start – with purged cache, flushed disk and paged in libraries.

author: mnicel@novell.com

	Activity	Time taken (ms)
	Time taken to open the various libraries - libsvl, libsvt, libutl etc	400.6ms
	Time taken after opening libs till initializing Desktop() - couple of mprotect calls, accessign locale-archive, locale.alias, gconv-modules.cache etc	253.4ms
	Checking the .Xauthority, opening /etc/ld.so.cache and the vcl, gtk_plug, libgtk, gdk-x11, atk, ... libs	136.1ms
	Charset and LC_* locale spec init activities	138.9ms
	opening xdefaults, xcursor libs and reading the settings - _NET_WM_WINDOW_TYPE_* and like	26.1ms
	Init activity (CreateApplicationServiceManager - accessing/opening sofficerc, unorc, *.uno.so libs etc)	233.2ms
	Accessing bootstraprc	2.25ms
	Status checking for uno packages and other files (lstat64)	172.55ms
	opening libreg, libsore etc.	29.7ms
	lot of status check calls and opening of types.rdb, Linux_x86rc, common,rdb, services.rdb etc.	316.7ms
	opening/processing configmgr2.uno.so, typeconverter.uno.so, configmgrrc, bootstraprc	169.5ms
	reading registry schema, configmgr, sysmgr1.uno.so, registry/cache	239.4ms
	Setup.xcu, Setup.xcs, Setup.dat, sax.uno.so access and writing setup.dat	665.96ms
	Opening Setup.xcu, Linguistic.xcu	82.9ms
	Accessing System.xcu, localebe1.uno.so, behelper.uno.so	110.7ms
	Accessing Setup.xcu and writing Setup.dat	15.8ms
	stat check, access bootstraprc, .openoffice.org1.9.milestone again -> Init() done	112.9ms
	Opening splash screen - open libspl680li.so, access VCL.xcu, VCL.dat, gtkrc, common.xcu, common.dat, .fonts	1871.8ms
	configure ucb - libucb, configuration.xcu	90.2ms
	create temp directory	93.8ms
	accessing resolv.conf, host.conf etc. and opening of libreadline, libhistory, libncurses, libdl, libc etc.	15.7ms
	Locale specific – accessing LC*	22.2ms
	loading libz, libgconf, libORBit, libpopt, libgobject etc...	35.8ms
	accessing orbitrc, orbit charset.alias	17.6ms
	Accessing resource files - .res	328.7ms
	Compatibility.xcu, Compatibility.dat handling	7.6ms
	Setting Locale Settings and setting the resource manager	40.4ms
	opening libs - libsfx, libj680li_g.so etc	85.8ms
	Processing Events.xcu, Jobs.xcu, Views.xcu, Store.xcu	96.8ms
	Process effects.xml and svg7i.tmp	173.33ms
	Processing Transitions.xml	43.4ms
	config modules – soffice.cfg/modules – sweb – menubar – menubar.xml, toolbar – formcontrols.xml, optimizetablebar.xml etc. (Mainly the time is consumed to read the numerous xml files and seek and write the corresponding temp files)	6765.88ms
	Similary for soffice.cfg/global – accelerator – en-US/default.xml	20.1ms
	accessing soffice.cfg/META-INF/manifest.xml, loading some libs and accessing the tmp files created	198.78ms
	opening modules' images, bitmaps , modules/StartModule/accelerator/en-US/current.xml etc.	210ms
	accessing manifext.xml and reading resources .res	184.2ms
	opening libfwk, accessing commands.xcu, protocolhandler.xcu etc	10.2ms
	reading sfx680en-US.res (by this time createInstance gets done)	44.9ms
	aceesing dkt680en-US.res, svt680en-US.res,	83.2ms
	Processing UI.xcu, Factories.xcu etc.	110.8ms

2005-01-27T11:04:48