* 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:
parent
0d585fc128
commit
33d17f74e0
@ -260,7 +260,7 @@ start_session(team_id team, dev_t device, ino_t node, const char *name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// let's see if there is a prefetch session for this session
|
// let's see if there is a prefetch session for this session
|
||||||
|
|
||||||
Session *prefetchSession;
|
Session *prefetchSession;
|
||||||
if (session->IsMainSession()) {
|
if (session->IsMainSession()) {
|
||||||
// search for session by name
|
// search for session by name
|
||||||
@ -378,7 +378,7 @@ Session::Session(team_id team, const char *name, dev_t device,
|
|||||||
size_t length = strlen(name) + 1;
|
size_t length = strlen(name) + 1;
|
||||||
if (length > B_OS_NAME_LENGTH)
|
if (length > B_OS_NAME_LENGTH)
|
||||||
name += length - B_OS_NAME_LENGTH;
|
name += length - B_OS_NAME_LENGTH;
|
||||||
|
|
||||||
strlcpy(fName, name, B_OS_NAME_LENGTH);
|
strlcpy(fName, name, B_OS_NAME_LENGTH);
|
||||||
} else
|
} else
|
||||||
fName[0] = '\0';
|
fName[0] = '\0';
|
||||||
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user