Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions
benchmark_test.h File Reference
#include "include/dart_api.h"
#include "vm/dart.h"
#include "vm/globals.h"
#include "vm/isolate.h"
#include "vm/object.h"
#include "vm/unit_test.h"
#include "vm/zone.h"

Go to the source code of this file.

Classes

class  dart::Benchmark
 
class  dart::BenchmarkIsolateScope
 

Namespaces

namespace  dart
 
namespace  dart::bin
 

Macros

#define BENCHMARK_HELPER(name, kind)
 
#define BENCHMARK(name)   BENCHMARK_HELPER(name, "RunTime")
 
#define BENCHMARK_SIZE(name)   BENCHMARK_HELPER(name, "CodeSize")
 
#define BENCHMARK_MEMORY(name)   BENCHMARK_HELPER(name, "MemoryUse")
 

Functions

 dart::DECLARE_FLAG (int, code_heap_size)
 
 dart::DECLARE_FLAG (int, old_gen_growth_space_ratio)
 
Dart_Handle dart::NewString (const char *str)
 

Macro Definition Documentation

◆ BENCHMARK

#define BENCHMARK (   name)    BENCHMARK_HELPER(name, "RunTime")

Definition at line 46 of file benchmark_test.h.

◆ BENCHMARK_HELPER

#define BENCHMARK_HELPER (   name,
  kind 
)
Value:
void Dart_Benchmark##name(Benchmark* benchmark); \
static Benchmark kRegister##name(Dart_Benchmark##name, #name, kind); \
static void Dart_BenchmarkHelper##name(Benchmark* benchmark, \
Thread* thread); \
void Dart_Benchmark##name(Benchmark* benchmark) { \
FLAG_old_gen_growth_space_ratio = 100; \
BenchmarkIsolateScope __isolate__(benchmark); \
Thread* __thread__ = Thread::Current(); \
ASSERT(__thread__->isolate() == benchmark->isolate()); \
Dart_BenchmarkHelper##name(benchmark, __thread__); \
} \
static void Dart_BenchmarkHelper##name(Benchmark* benchmark, Thread* thread)
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Definition at line 32 of file benchmark_test.h.

◆ BENCHMARK_MEMORY

#define BENCHMARK_MEMORY (   name)    BENCHMARK_HELPER(name, "MemoryUse")

Definition at line 48 of file benchmark_test.h.

◆ BENCHMARK_SIZE

#define BENCHMARK_SIZE (   name)    BENCHMARK_HELPER(name, "CodeSize")

Definition at line 47 of file benchmark_test.h.