forked from organicmaps/organicmaps
Add logging of different loading stages.
This commit is contained in:
parent
b4460f35fe
commit
0cd9cca6de
3 changed files with 10 additions and 0 deletions
|
@ -3,15 +3,20 @@
|
|||
#include "drawing_rules.hpp"
|
||||
|
||||
#include "../coding/reader.hpp"
|
||||
#include "../base/logging.hpp"
|
||||
|
||||
namespace classificator
|
||||
{
|
||||
void Read(string const & rules, string const & classificator, string const & visibility)
|
||||
{
|
||||
LOG(LINFO, ("Reading drawing rules"));
|
||||
drule::ReadRules(rules.c_str());
|
||||
LOG(LINFO, ("Reading classificator"));
|
||||
if (!classif().ReadClassificator(classificator.c_str()))
|
||||
MYTHROW(Reader::OpenException, ("drawing rules or classificator file"));
|
||||
|
||||
LOG(LINFO, ("Reading visibility"));
|
||||
(void)classif().ReadVisibility(visibility.c_str());
|
||||
LOG(LINFO, ("Reading visibility done"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
- (void) applicationDidFinishLaunching: (UIApplication *) application
|
||||
{
|
||||
LOG(LINFO, ("Application started finishing launching"));
|
||||
// Initialize Sloynik engine.
|
||||
// It takes long for the first time, so we do it while startup image is visible.
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
|
||||
|
@ -52,6 +53,8 @@
|
|||
// Add the tab bar controller's current view as a subview of the window
|
||||
[window addSubview:mapViewController.view];
|
||||
[window makeKeyAndVisible];
|
||||
|
||||
LOG(LINFO, ("Application did finished finishing launching"));
|
||||
}
|
||||
|
||||
- (GuideViewController *)guideViewController
|
||||
|
|
|
@ -238,10 +238,12 @@ public:
|
|||
{
|
||||
m_model.InitClassificator();
|
||||
|
||||
LOG(LINFO, ("Initializing storage"));
|
||||
// initializes model with locally downloaded maps
|
||||
storage.Init(bind(&FrameWork::AddMap, this, _1),
|
||||
bind(&FrameWork::RemoveMap, this, _1),
|
||||
bind(&FrameWork::RepaintRect, this, _1));
|
||||
LOG(LINFO, ("Storage initialized"));
|
||||
}
|
||||
|
||||
void InitLocator(shared_ptr<Locator> const & locator)
|
||||
|
|
Loading…
Add table
Reference in a new issue