xprofiler.c

来自「kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的jav」· C语言 代码 · 共 47 行

C
47
字号
/* * XProfiler.c * Java wrappers for the xprofiler functions * * Copyright (c) 2000 University of Utah and the Flux Group. * All rights reserved. * * This file is licensed under the terms of the GNU Public License. * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * * Contributed by the Flux Research Group, Department of Computer Science, * University of Utah, http://www.cs.utah.edu/flux/ */#include "config.h"#include "../../../kaffe/kaffevm/gtypes.h"#include "../../../kaffe/xprof/xprofiler.h"#include "kaffe_management_XProfiler.h"#include "../../../kaffe/kaffevm/stringSupport.h"#include <native.h>void Java_kaffe_management_XProfiler_on(JNIEnv *env, jclass clazz){#if defined(KAFFE_XPROFILER)	xProfilingOn();#endif}void Java_kaffe_management_XProfiler_off(JNIEnv *env, jclass clazz){#if defined(KAFFE_XPROFILER)	xProfilingOff();#endif}void Java_kaffe_management_XProfiler_stage(JNIEnv *env, jclass clazz,					   jstring _stage_name){#if defined(KAFFE_XPROFILER)	char *stage_name = stringJava2C(_stage_name);	xProfileStage(stage_name);	KFREE(stage_name);#endif}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?