找回密码
 注册
查看: 1603|回复: 0

R语言 rJava包 jmemprof()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-22 21:02:06 | 显示全部楼层 |阅读模式
jmemprof(rJava)
jmemprof()所属R语言包:rJava

                                         rJava memory profiler
                                         rJava内存分析器

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

.jmemprof enables or disables rJava memory profiling. If rJava was compiled without memory profiling support, then a call to this function always causes an error.
.jmemprof启用或禁用rJava内存分析。如果rJava不支持内存分析编译,那么这个函数的调用总是导致错误。


用法----------Usage----------


.jmemprof(file = "-")



参数----------Arguments----------

参数:file
file to write profiling information to or NULL to disable profiling
文件写的分析信息或NULL禁用分析


Details

详情----------Details----------

The file parameter must be either a filename (which will be opened in append-mode) or "-" to use standard output or NULL to disable profiling. An empty string "" is equivalent to NULL in this context.
file参数必须是一个文件名(这将在追加模式打开)或“ - ”使用标准输出或NULL禁用分析。一个空字符串“”NULL在这方面是相当于。

Note that lots of finalizers are run only when R exists, so usually you want to enable profiling early and let R exit to get a sensible profile. Runninng gc may be helpful to get rid of references that can be collected in R.
请注意,只有当ŕ存在很多终结运行,因此通常要启用剖析年初,让R退出得到一个合理的配置。 runninng GC可能有助于摆脱在R可收集参考

A simple perl script is provided to analyze the result of the profiler. Due to its simple text format, it is possible to capture entire stdout including the profiler information to have both the console context for the allocations and the profile. Memory profiling is also helful if rJava debug is enabled.
一个简单的Perl脚本,提供分析探查的结果。由于其简单的文本格式,它可以捕捉整个标准输出包括分配的控制台背景和轮廓探查信息。内存分析也是helful如果rJava调试启用。

Note that memory profiling support must be compiled in rJava and it is by default compiled only if debug mode is enabled (which is not the case by default).
注意:内存分析支持,必须在rJava编译是编译默认情况下,只有当启用了调试模式(这是默认情况下)。


值----------Value----------

Returns NULL.
返回NULL的。


举例----------Examples----------



.jmemprof("rJava.mem.profile.txt")


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-4-21 20:08 , Processed in 0.032795 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表