summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2019-07-23 19:20:43 -0400
committerJulian Rex <julian.rex@mapbox.com>2019-08-23 16:22:07 -0400
commit91aac8a327a4accf7f0949968f511d39dbe2e44e (patch)
treeb875a73103d2c295bad9a21cc1f917495c83b29c
parentb8f3c9ebc21a436a97d810d7ca4b20c64c942e28 (diff)
downloadqtlocation-mapboxgl-91aac8a327a4accf7f0949968f511d39dbe2e44e.tar.gz
Reverted configuration change / additional comments
-rw-r--r--platform/darwin/src/MGLSignpost.h8
-rw-r--r--platform/ios/ios.xcodeproj/xcshareddata/xcschemes/iosapp.xcscheme2
2 files changed, 9 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLSignpost.h b/platform/darwin/src/MGLSignpost.h
index 01191bbfc1..44f5b9ce6b 100644
--- a/platform/darwin/src/MGLSignpost.h
+++ b/platform/darwin/src/MGLSignpost.h
@@ -47,6 +47,14 @@ MGL_EXPORT extern os_log_t MGLSignpostLogCreate(const char* name);
// Use MGL_SIGNPOST_BEGIN & MGL_SIGNPOST_END around sections of code that you
// wish to profile.
// MGL_SIGNPOST_EVENT can be used for single one-off events
+//
+// For example:
+//
+// MGL_SIGNPOST_BEGIN("example");
+// [self performAComputationallyExpensiveOperation];
+// MGL_SIGNPOST_END("example", "%d", numberOfWidgets);
+//
+// MGL_SIGNPOST_EVENT("error", "%d", errorCode);
#define MGL_SIGNPOST_BEGIN(name) MGL_NAMED_SIGNPOST_BEGIN(MGLDefaultSignpostLog, MGLDefaultSignpostId, name)
#define MGL_SIGNPOST_END(name, ...) MGL_NAMED_SIGNPOST_END(MGLDefaultSignpostLog, MGLDefaultSignpostId, name, ##__VA_ARGS__)
diff --git a/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/iosapp.xcscheme b/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/iosapp.xcscheme
index 2119066815..1f8969faf7 100644
--- a/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/iosapp.xcscheme
+++ b/platform/ios/ios.xcodeproj/xcshareddata/xcschemes/iosapp.xcscheme
@@ -65,7 +65,7 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
- buildConfiguration = "RelWithDebInfo"
+ buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"