IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
Perf.cs
Go to the documentation of this file.
1/*
2 Copyright (C) 2007-2015 Jeroen Frijters
3 Copyright (C) 2009 Volker Berlin (i-net software)
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20
21 Jeroen Frijters
22 jeroen@frijters.net
23
24*/
25using System;
26
28{
29
30 static class Perf
31 {
32
33 public static object attach(object thisPerf, string user, int lvmid, int mode)
34 {
35 throw new NotImplementedException();
36 }
37
38 public static void detach(object thisPerf, object bb)
39 {
40 throw new NotImplementedException();
41 }
42
43 public static object createLong(object thisPerf, string name, int variability, int units, long value)
44 {
45#if FIRST_PASS
46 return null;
47#else
48 return global::java.nio.ByteBuffer.allocate(8);
49#endif
50 }
51
52 public static object createByteArray(object thisPerf, string name, int variability, int units, byte[] value, int maxLength)
53 {
54#if FIRST_PASS
55 return null;
56#else
57 return global::java.nio.ByteBuffer.allocate(maxLength).put(value);
58#endif
59 }
60
61 public static long highResCounter(object thisPerf)
62 {
63 throw new NotImplementedException();
64 }
65
66 public static long highResFrequency(object thisPerf)
67 {
68 throw new NotImplementedException();
69 }
70
71 public static void registerNatives()
72 {
73
74 }
75
76 }
77
78}
static object createByteArray(object thisPerf, string name, int variability, int units, byte[] value, int maxLength)
Definition Perf.cs:52
static object attach(object thisPerf, string user, int lvmid, int mode)
Definition Perf.cs:33
static object createLong(object thisPerf, string name, int variability, int units, long value)
Definition Perf.cs:43
static void registerNatives()
Definition Perf.cs:71
static void detach(object thisPerf, object bb)
Definition Perf.cs:38
static long highResCounter(object thisPerf)
Definition Perf.cs:61
static long highResFrequency(object thisPerf)
Definition Perf.cs:66