#include <storage.h>
#include <app_common.h>
+#include "injection.h"
#include "utils.h"
#include "log.h"
#include "launcher.h"
int CoreRuntime::initialize(bool standalone)
{
+ // checkInjection checks dotnet-launcher run mode,
+ // if it contains DOTNET_LAUNCHER_INJECT variable, it injects library.
+ // At the moment, this mechanism is used only when the Memory Profiler is started.
+ int res = checkInjection();
+ if (res != 0) {
+ _ERR("Failed to initnialize Memory Profiler");
+ return -1;
+ }
#define __XSTR(x) #x
#define __STR(x) __XSTR(x)
* limitations under the License.
*/
-#include "injection.h"
#include "dotnet/dotnet_launcher.h"
#include "utils.h"
#include "log.h"
extern "C" int realMain(int argc, char *argv[], const char* mode)
{
- // checkInjection checks dotnet-launcher run mode,
- // if it contains DOTNET_LAUNCHER_INJECT variable, it injects library.
- // At the moment, this mechanism is used only when the Memory Profiler is started.
- int res = checkInjection();
- if (res != 0) {
- return 1;
- }
-
int i;
bool standaloneMode = false;
char* standalonePath = nullptr;