diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-25 15:15:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-25 15:15:54 +0300 |
commit | 2198ecc98ecc5e94f2856795065d198557387ade (patch) | |
tree | 873858ffceb4b6e62f441597860224b9fa3a6207 /src/resources/resourcemanager.cpp | |
parent | 75c5b3d32afdb34b824daafaa6d4300b9a8ec06b (diff) | |
download | manaverse-2198ecc98ecc5e94f2856795065d198557387ade.tar.gz manaverse-2198ecc98ecc5e94f2856795065d198557387ade.tar.bz2 manaverse-2198ecc98ecc5e94f2856795065d198557387ade.tar.xz manaverse-2198ecc98ecc5e94f2856795065d198557387ade.zip |
Add more profiler labels.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 9fd445ffc..5ae057748 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -544,13 +544,20 @@ struct DyedImageLoader final std::string path; static Resource *load(const void *const v) { + BLOCK_START("DyedImageLoader::load") if (!v) + { + BLOCK_END("DyedImageLoader::load") return nullptr; + } const DyedImageLoader *const rl = static_cast<const DyedImageLoader *const>(v); if (!rl->manager) + { + BLOCK_END("DyedImageLoader::load") return nullptr; + } std::string path1 = rl->path; const size_t p = path1.find('|'); @@ -564,11 +571,13 @@ struct DyedImageLoader final if (!rw) { delete d; + BLOCK_END("DyedImageLoader::load") return nullptr; } Resource *const res = d ? imageHelper->load(rw, *d) : imageHelper->load(rw); delete d; + BLOCK_END("DyedImageLoader::load") return res; } }; |