Skip to content

Commit

Permalink
Add log for app launch timing [GF-2589]
Browse files Browse the repository at this point in the history
- Add "SYSMGR PERF: APP LAUNCHED" line for each app launch, which
  can be matched with the already existing SYSMGR PERF: STATE MAXIMIZED
  to determine the launch time in milliseconds.

Open-webOS-DCO-1.0-Signed-off-by: Eric Blade <[email protected]>

Change-Id: If3f011d8dc0a3172adeae619f49fe3cd329908ba
Reviewed-on: https://g2g.palm.com/1750
Reviewed-by: Build Verification
Reviewed-by: Eric Blade <[email protected]>
Tested-by: Eric Blade <[email protected]>
Reviewed-by: Roger Stringer <[email protected]>
  • Loading branch information
ericblade-owo authored and Roger Stringer committed Mar 21, 2013
1 parent 94af07c commit 5855190
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Src/remote/WebAppMgrProxy.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* @@@LICENSE
*
* Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P.
* Copyright (c) 2013 LG Electronics
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -45,7 +46,6 @@
#include "IpcServer.h"
#include "SystemUiController.h"
#include "WindowServer.h"
//#include "WebAppManager.h"
#include "Settings.h"
#include "ApplicationDescription.h"
#include "ApplicationManager.h"
Expand All @@ -56,6 +56,7 @@
#include "MemoryMonitor.h"
#include "CustomEvents.h"
#include "HostWindowData.h"
#include "Time.h"

static WebAppMgrProxy* s_instance = NULL;
static gchar* s_appToLaunchWhenConnectedStr = NULL;
Expand Down Expand Up @@ -559,6 +560,10 @@ std::string WebAppMgrProxy::appLaunch(const std::string& appId,
}
}

if (G_UNLIKELY(Settings::LunaSettings()->perfTesting)) {
g_message("SYSMGR PERF: APP LAUNCHED app id: %s, start time: %d", appId.c_str(), Time::curTimeMs());
}

if (desc->type() == ApplicationDescription::Type_Web) {
// Verify that the app doesn't have a security issue
if (!desc->securityChecksVerified())
Expand Down

0 comments on commit 5855190

Please sign in to comment.