* Added some temporary debug code to measure the boot time.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28899 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -791,6 +791,9 @@ launch_speedup_control(const char *subsystem, uint32 function,
|
|||||||
if (sMainSession == NULL || strcmp(sMainSession->Name(), name))
|
if (sMainSession == NULL || strcmp(sMainSession->Name(), name))
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
|
if (!strcmp(name, "system boot"))
|
||||||
|
dprintf("STOP BOOT %Ld\n", system_time());
|
||||||
|
|
||||||
sMainSession->Lock();
|
sMainSession->Lock();
|
||||||
stop_session(sMainSession);
|
stop_session(sMainSession);
|
||||||
sMainSession = NULL;
|
sMainSession = NULL;
|
||||||
@@ -868,6 +871,7 @@ init()
|
|||||||
|
|
||||||
sMainSession = start_session(-1, -1, -1, "system boot");
|
sMainSession = start_session(-1, -1, -1, "system boot");
|
||||||
sMainSession->Unlock();
|
sMainSession->Unlock();
|
||||||
|
dprintf("START BOOT %Ld\n", system_time());
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|
||||||
err3:
|
err3:
|
||||||
|
|||||||
Reference in New Issue
Block a user