mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
neutrino: remove startup profiling code
This commit is contained in:
@@ -1909,14 +1909,11 @@ void wake_up(bool &wakeup)
|
|||||||
|
|
||||||
int CNeutrinoApp::run(int argc, char **argv)
|
int CNeutrinoApp::run(int argc, char **argv)
|
||||||
{
|
{
|
||||||
time_t starttime = time_monotonic_ms();
|
|
||||||
CmdParser(argc, argv);
|
CmdParser(argc, argv);
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
TIMER_START();
|
TIMER_START();
|
||||||
cs_api_init();
|
cs_api_init();
|
||||||
cs_register_messenger(CSSendMessage);
|
cs_register_messenger(CSSendMessage);
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
g_info.hw_caps = get_hwcaps();
|
g_info.hw_caps = get_hwcaps();
|
||||||
can_deepstandby = g_info.hw_caps->can_shutdown;
|
can_deepstandby = g_info.hw_caps->can_shutdown;
|
||||||
@@ -1925,7 +1922,6 @@ fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms
|
|||||||
g_Locale = new CLocaleManager;
|
g_Locale = new CLocaleManager;
|
||||||
|
|
||||||
int loadSettingsErg = loadSetup(NEUTRINO_SETTINGS_FILE);
|
int loadSettingsErg = loadSetup(NEUTRINO_SETTINGS_FILE);
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
initialize_iso639_map();
|
initialize_iso639_map();
|
||||||
|
|
||||||
@@ -1937,7 +1933,6 @@ fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms
|
|||||||
loadLocale_ret = g_Locale->loadLocale(g_settings.language.c_str());
|
loadLocale_ret = g_Locale->loadLocale(g_settings.language.c_str());
|
||||||
show_startwizard = true;
|
show_startwizard = true;
|
||||||
}
|
}
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
// default usermenu titles correspond to gui/user_menue_setup.h:struct usermenu_props_t usermenu
|
// default usermenu titles correspond to gui/user_menue_setup.h:struct usermenu_props_t usermenu
|
||||||
if (g_settings.usermenu[0]->title.empty())
|
if (g_settings.usermenu[0]->title.empty())
|
||||||
@@ -1952,18 +1947,15 @@ fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms
|
|||||||
/* setup GUI */
|
/* setup GUI */
|
||||||
neutrinoFonts = CNeutrinoFonts::getInstance();
|
neutrinoFonts = CNeutrinoFonts::getInstance();
|
||||||
SetupFonts();
|
SetupFonts();
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
g_PicViewer = new CPictureViewer();
|
g_PicViewer = new CPictureViewer();
|
||||||
CColorSetupNotifier::setPalette();
|
CColorSetupNotifier::setPalette();
|
||||||
|
|
||||||
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NEUTRINO_STARTING));
|
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NEUTRINO_STARTING));
|
||||||
hintBox->paint();
|
hintBox->paint();
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
CVFD::getInstance()->init(neutrinoFonts->fontDescr.filename.c_str(), neutrinoFonts->fontDescr.name.c_str());
|
CVFD::getInstance()->init(neutrinoFonts->fontDescr.filename.c_str(), neutrinoFonts->fontDescr.name.c_str());
|
||||||
CVFD::getInstance()->Clear();
|
CVFD::getInstance()->Clear();
|
||||||
CVFD::getInstance()->ShowText(g_Locale->getText(LOCALE_NEUTRINO_STARTING));
|
CVFD::getInstance()->ShowText(g_Locale->getText(LOCALE_NEUTRINO_STARTING));
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
CVFD::getInstance()->setBacklight(g_settings.backlight_tv);
|
CVFD::getInstance()->setBacklight(g_settings.backlight_tv);
|
||||||
|
|
||||||
if (!scanSettings.loadSettings(NEUTRINO_SCAN_SETTINGS_FILE))
|
if (!scanSettings.loadSettings(NEUTRINO_SCAN_SETTINGS_FILE))
|
||||||
@@ -1992,7 +1984,6 @@ fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms
|
|||||||
audioDecoder->SetHdmiDD((HDMI_ENCODED_MODE)g_settings.hdmi_dd);
|
audioDecoder->SetHdmiDD((HDMI_ENCODED_MODE)g_settings.hdmi_dd);
|
||||||
audioDecoder->SetSpdifDD(g_settings.spdif_dd ? true : false);
|
audioDecoder->SetSpdifDD(g_settings.spdif_dd ? true : false);
|
||||||
audioDecoder->EnableAnalogOut(g_settings.analog_out ? true : false);
|
audioDecoder->EnableAnalogOut(g_settings.analog_out ? true : false);
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
audioSetupNotifier = new CAudioSetupNotifier;
|
audioSetupNotifier = new CAudioSetupNotifier;
|
||||||
// trigger a change
|
// trigger a change
|
||||||
if(g_settings.avsync != (AVSYNC_TYPE) AVSYNC_ENABLED)
|
if(g_settings.avsync != (AVSYNC_TYPE) AVSYNC_ENABLED)
|
||||||
@@ -2001,7 +1992,6 @@ fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms
|
|||||||
//init video settings
|
//init video settings
|
||||||
g_videoSettings = new CVideoSettings;
|
g_videoSettings = new CVideoSettings;
|
||||||
g_videoSettings->setVideoSettings();
|
g_videoSettings->setVideoSettings();
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
g_RCInput = new CRCInput();
|
g_RCInput = new CRCInput();
|
||||||
|
|
||||||
@@ -2068,7 +2058,6 @@ fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms
|
|||||||
g_EpgData = new CEpgData;
|
g_EpgData = new CEpgData;
|
||||||
g_InfoViewer = new CInfoViewer;
|
g_InfoViewer = new CInfoViewer;
|
||||||
g_EventList = new CNeutrinoEventList;
|
g_EventList = new CNeutrinoEventList;
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
g_CamHandler = new CCAMMenuHandler();
|
g_CamHandler = new CCAMMenuHandler();
|
||||||
g_CamHandler->init();
|
g_CamHandler->init();
|
||||||
@@ -2083,18 +2072,15 @@ fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms
|
|||||||
CFSMounter::automount();
|
CFSMounter::automount();
|
||||||
g_PluginList = new CPlugins;
|
g_PluginList = new CPlugins;
|
||||||
g_PluginList->setPluginDir(PLUGINDIR);
|
g_PluginList->setPluginDir(PLUGINDIR);
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
//load Pluginlist before main menu (only show script menu if at least one script is available
|
//load Pluginlist before main menu (only show script menu if at least one script is available
|
||||||
g_PluginList->loadPlugins();
|
g_PluginList->loadPlugins();
|
||||||
|
|
||||||
// setup recording device
|
// setup recording device
|
||||||
setupRecordingDevice();
|
setupRecordingDevice();
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
dprintf( DEBUG_NORMAL, "menue setup\n");
|
dprintf( DEBUG_NORMAL, "menue setup\n");
|
||||||
//init Menues
|
//init Menues
|
||||||
InitMenu();
|
InitMenu();
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
dprintf( DEBUG_NORMAL, "registering as event client\n");
|
dprintf( DEBUG_NORMAL, "registering as event client\n");
|
||||||
|
|
||||||
@@ -2138,14 +2124,12 @@ fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms
|
|||||||
CHDDDestExec * hdd = new CHDDDestExec();
|
CHDDDestExec * hdd = new CHDDDestExec();
|
||||||
hdd->exec(NULL, "");
|
hdd->exec(NULL, "");
|
||||||
delete hdd;
|
delete hdd;
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
hintBox->hide(); // InitZapper also displays a hintbox
|
hintBox->hide(); // InitZapper also displays a hintbox
|
||||||
delete hintBox;
|
delete hintBox;
|
||||||
|
|
||||||
cCA::GetInstance()->Ready(true);
|
cCA::GetInstance()->Ready(true);
|
||||||
//InitZapper();
|
//InitZapper();
|
||||||
fprintf(stderr, "[neutrino start] %d -> %5ld ms\n", __LINE__, time_monotonic_ms() - starttime);
|
|
||||||
|
|
||||||
SHTDCNT::getInstance()->init();
|
SHTDCNT::getInstance()->init();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user