Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
exe_utils.h
Go to the documentation of this file.
1// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_BIN_EXE_UTILS_H_
6#define RUNTIME_BIN_EXE_UTILS_H_
7
8#include <stdlib.h>
9#include <string.h>
10
11#include "include/dart_api.h"
12#include "platform/globals.h"
13#include "platform/utils.h"
14
15namespace dart {
16namespace bin {
17
18class EXEUtils {
19 public:
20 // Returns the path to the directory the current executable resides in.
22
23#if !defined(DART_HOST_OS_WINDOWS)
24 // Loads a compact symbolization table from "$exepath.sym" that is used by the
25 // VM's profiler and crash stack trace dumper to symbolize C frames.
26 static void LoadDartProfilerSymbols(const char* exepath);
27#endif
28
29 private:
31};
32
33} // namespace bin
34} // namespace dart
35
36#endif // RUNTIME_BIN_EXE_UTILS_H_
std::unique_ptr< char, decltype(std::free) * > CStringUniquePtr
Definition utils.h:644
static Utils::CStringUniquePtr GetDirectoryPrefixFromExeName()
Definition exe_utils.cc:68
static void LoadDartProfilerSymbols(const char *exepath)
Definition exe_utils.cc:125
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition globals.h:581