29 EXPECT_EQ(0, metric.
value());
31 EXPECT_EQ(1, metric.
value());
33 EXPECT_EQ(44, metric.
value());
60 EXPECT_EQ(0, metric.
value());
67 const char* json =
js.ToCString();
69 "{\"type\":\"Counter\",\"name\":\"a.b.c\",\"description\":"
70 "\"foobar\",\"unit\":\"byte\","
71 "\"fixedId\":true,\"id\":\"metrics\\/native\\/a.b.c\""
83 const char* kScript =
"void main() {}";
99 EXPECT(thread->isolate_group()->GetHeapOldUsedMaxMetric()->Value() > 0);
100 EXPECT(thread->isolate_group()->GetHeapOldCapacityMaxMetric()->Value() > 0);
101 EXPECT(thread->isolate_group()->GetHeapNewUsedMaxMetric()->Value() > 0);
102 EXPECT(thread->isolate_group()->GetHeapNewCapacityMaxMetric()->Value() > 0);
103 EXPECT(thread->isolate_group()->GetHeapGlobalUsedMetric()->Value() > 0);
104 EXPECT(thread->isolate_group()->GetHeapGlobalUsedMaxMetric()->Value() > 0);
static Isolate * Current()
void PrintJSON(JSONStream *stream)
void set_value(int64_t value)
void InitInstance(Isolate *isolate, const char *name, const char *description, Unit unit)
int64_t LeakyValue() const
static StringPtr New(const char *cstr, Heap::Space space=Heap::kNew)
static Dart_Handle LoadTestScript(const char *script, Dart_NativeEntryResolver resolver, const char *lib_uri=RESOLVED_USER_TEST_URI, bool finalize=true, bool allow_compile_errors=false)
static Dart_Isolate CreateTestIsolate(const char *name=nullptr, void *isolate_group_data=nullptr, void *isolate_data=nullptr)
static Thread * Current()
struct _Dart_Handle * Dart_Handle
struct _Dart_IsolateGroup * Dart_IsolateGroup
DART_EXPORT Dart_IsolateGroup Dart_CurrentIsolateGroup()
ISOLATE_UNIT_TEST_CASE(StackAllocatedDestruction)
DART_EXPORT void Dart_ShutdownIsolate()
VM_UNIT_TEST_CASE(DirectoryCurrentNoScope)
#define RESOLVED_USER_TEST_URI
#define EXPECT_VALID(handle)