forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathV8IsolateProxy.cs
More file actions
47 lines (30 loc) · 1.62 KB
/
V8IsolateProxy.cs
File metadata and controls
47 lines (30 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
using System.IO;
using Microsoft.ClearScript.V8.SplitProxy;
namespace Microsoft.ClearScript.V8
{
internal abstract class V8IsolateProxy : V8Proxy
{
public static V8IsolateProxy Create(string name, V8RuntimeConstraints constraints, V8RuntimeFlags flags, int debugPort)
{
return new V8IsolateProxyImpl(name, constraints, flags, debugPort);
}
public abstract UIntPtr MaxHeapSize { get; set; }
public abstract TimeSpan HeapSizeSampleInterval { get; set; }
public abstract UIntPtr MaxStackUsage { get; set; }
public abstract void AwaitDebuggerAndPause();
public abstract V8Script Compile(UniqueDocumentInfo documentInfo, string code);
public abstract V8Script Compile(UniqueDocumentInfo documentInfo, string code, V8CacheKind cacheKind, out byte[] cacheBytes);
public abstract V8Script Compile(UniqueDocumentInfo documentInfo, string code, V8CacheKind cacheKind, byte[] cacheBytes, out bool cacheAccepted);
public abstract V8RuntimeHeapInfo GetHeapInfo();
public abstract V8Runtime.Statistics GetStatistics();
public abstract void CollectGarbage(bool exhaustive);
public abstract bool BeginCpuProfile(string name, V8CpuProfileFlags flags);
public abstract V8CpuProfile EndCpuProfile(string name);
public abstract void CollectCpuProfileSample();
public abstract uint CpuProfileSampleInterval { get; set; }
public abstract void WriteHeapSnapshot(Stream stream);
}
}