]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/library/c_stats.c
ed4d3f9b607f90263edb171ad4522cb1d79a32b1
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / library / c_stats.c
1 /*******************************************************************************
2  * Copyright (c) 2000, 2019 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *    IBM Corporation - initial API and implementation
13  *******************************************************************************/
14
15 /* Note: This file was auto-generated by org.eclipse.swt.tools.internal.JNIGenerator */
16 /* DO NOT EDIT - your changes will be lost. */
17
18 #include "swt.h"
19 #include "c_stats.h"
20
21 #ifdef NATIVE_STATS
22
23 char * C_nativeFunctionNames[] = {
24         "PTR_1sizeof",
25         "free",
26         "getenv",
27         "malloc",
28         "memmove__JJJ",
29         "memmove__J_3BJ",
30         "memmove__J_3CJ",
31         "memmove__J_3DJ",
32         "memmove__J_3FJ",
33         "memmove__J_3IJ",
34         "memmove__J_3JJ",
35         "memmove__J_3SJ",
36         "memmove___3BJJ",
37         "memmove___3B_3CJ",
38         "memmove___3CJJ",
39         "memmove___3DJJ",
40         "memmove___3FJJ",
41         "memmove___3IJJ",
42         "memmove___3I_3BJ",
43         "memmove___3JJJ",
44         "memmove___3SJJ",
45         "memset",
46         "setenv",
47         "strlen",
48 };
49 #define NATIVE_FUNCTION_COUNT sizeof(C_nativeFunctionNames) / sizeof(char*)
50 int C_nativeFunctionCount = NATIVE_FUNCTION_COUNT;
51 int C_nativeFunctionCallCount[NATIVE_FUNCTION_COUNT];
52
53 #define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
54
55 JNIEXPORT jint JNICALL STATS_NATIVE(C_1GetFunctionCount)
56         (JNIEnv *env, jclass that)
57 {
58         return C_nativeFunctionCount;
59 }
60
61 JNIEXPORT jstring JNICALL STATS_NATIVE(C_1GetFunctionName)
62         (JNIEnv *env, jclass that, jint index)
63 {
64         return (*env)->NewStringUTF(env, C_nativeFunctionNames[index]);
65 }
66
67 JNIEXPORT jint JNICALL STATS_NATIVE(C_1GetFunctionCallCount)
68         (JNIEnv *env, jclass that, jint index)
69 {
70         return C_nativeFunctionCallCount[index];
71 }
72
73 #endif