5#include <lib/async-loop/cpp/loop.h>
6#include <lib/async-loop/default.h>
7#include <lib/inspect/component/cpp/component.h>
8#include <lib/trace-provider/provider.h>
9#include <lib/trace/event.h>
12#include "flutter/fml/logging.h"
13#include "flutter/fml/platform/fuchsia/log_interest_listener.h"
14#include "flutter/fml/platform/fuchsia/log_state.h"
15#include "flutter/fml/trace_event.h"
22#include "third_party/dart/runtime/include/dart_api.h"
24#if !defined(DART_PRODUCT)
27 const char* dso_name) {
28 std::string* symbols =
new std::string();
38int main(
int argc,
const char** argv) {
39 async::Loop loop(&kAsyncLoopConfigAttachToCurrentThread);
48 auto context = sys::ComponentContext::Create();
56 std::unique_ptr<trace::TraceProviderWithFdio> provider;
60 trace::TraceProviderWithFdio::CreateSynchronously(
61 loop.dispatcher(),
"dart_runner", &provider, &already_started);
64#if !defined(DART_PRODUCT)
65#if defined(AOT_RUNTIME)
75 context->outgoing()->ServeFromStartupInfo();
static void Dump(inspect::Node &node)
static void Initialize(sys::ComponentContext *context)
static inspect::Node CreateRootChild(const std::string &name)
void AsyncWaitForInterestChanged()
void SetTags(const std::initializer_list< std::string > &tags)
static LogState & Default()
DART_EXPORT void Dart_AddSymbols(const char *dso_name, void *buffer, intptr_t buffer_size)
#define FML_LOG(severity)
#define FML_CHECK(condition)
bool ReadFileToString(const std::string &path, std::string *result)
void SetDartVmNode(std::unique_ptr< inspect::Node > node)
static void RegisterProfilerSymbols(const char *symbols_path, const char *dso_name)