diff --git a/src/backend/rumBkdConsole.erl b/src/backend/rumBkdConsole.erl index bbb348b..b124dc9 100644 --- a/src/backend/rumBkdConsole.erl +++ b/src/backend/rumBkdConsole.erl @@ -9,6 +9,9 @@ -include("rumDef.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -define(TERSE_FORMAT, [time, " ", color, "[", severity, "] ", message]). -define(RumDefConsoleFmtCfg, ?TERSE_FORMAT ++ [eol()]). -define(RumDefConsoleOpts, [{use_stderr, false}, {group_leader, false}, {id, ?MODULE}, {formatter, rumFormatter}, {formatter_config, ?RumDefConsoleFmtCfg}]). diff --git a/src/backend/rumBkdFile.erl b/src/backend/rumBkdFile.erl index 0f4ea90..a89f6aa 100644 --- a/src/backend/rumBkdFile.erl +++ b/src/backend/rumBkdFile.erl @@ -9,10 +9,13 @@ %% For performance, the file backend does delayed writes, although it will sync at specific log levels, configured via the `sync_on' option. %% By default the error level or above will trigger a sync. +-behaviour(gen_emm). + -include("rumDef.hrl"). -include_lib("kernel/include/file.hrl"). --behaviour(gen_emm). +-compile(inline). +-compile({inline_size, 128}). -export([configToId/1]). diff --git a/src/backend/rumBkdThrottle.erl b/src/backend/rumBkdThrottle.erl index ee8e44f..7024d43 100644 --- a/src/backend/rumBkdThrottle.erl +++ b/src/backend/rumBkdThrottle.erl @@ -8,6 +8,9 @@ -include("rumDef.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -export([ init/1 , handleCall/2 diff --git a/src/crashLog/rumCrashLog.erl b/src/crashLog/rumCrashLog.erl index 6170b83..1141c03 100644 --- a/src/crashLog/rumCrashLog.erl +++ b/src/crashLog/rumCrashLog.erl @@ -11,6 +11,9 @@ -include("rumDef.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -export([ start/6 , start_link/6 diff --git a/src/eRum.erl b/src/eRum.erl index c50b16f..054fd17 100644 --- a/src/eRum.erl +++ b/src/eRum.erl @@ -5,9 +5,8 @@ -include("rumMsg.hrl"). -include("rumCom.hrl"). --ifdef(TEST). --include_lib("eunit/include/eunit.hrl"). --endif. +-compile(inline). +-compile({inline_size, 150}). %% API -export([ diff --git a/src/errLogger/rumErrLoggerH.erl b/src/errLogger/rumErrLoggerH.erl index d7365c2..fd1cad4 100644 --- a/src/errLogger/rumErrLoggerH.erl +++ b/src/errLogger/rumErrLoggerH.erl @@ -8,6 +8,9 @@ -include("rumDef.hrl"). -include("eRum.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -export([ setHighWater/1 , formatReason/1 diff --git a/src/formatter/rumFormatter.erl b/src/formatter/rumFormatter.erl index f2227b3..94d755d 100644 --- a/src/formatter/rumFormatter.erl +++ b/src/formatter/rumFormatter.erl @@ -2,6 +2,9 @@ -include("rumDef.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -export([ format/2 , format/3 diff --git a/src/mgrKiller/rumMgrKiller.erl b/src/mgrKiller/rumMgrKiller.erl index 7a61dac..72b7881 100644 --- a/src/mgrKiller/rumMgrKiller.erl +++ b/src/mgrKiller/rumMgrKiller.erl @@ -4,6 +4,9 @@ -include("rumDef.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -export([kill_me/0]). -export([ diff --git a/src/rotator/rumRotatorIns.erl b/src/rotator/rumRotatorIns.erl index 0a7e61c..9ca05b3 100644 --- a/src/rotator/rumRotatorIns.erl +++ b/src/rotator/rumRotatorIns.erl @@ -4,6 +4,9 @@ -include_lib("kernel/include/file.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -export([ createLogFile/2 , openLogFile/2 diff --git a/src/utils/rumConfig.erl b/src/utils/rumConfig.erl index a6f4ec5..0cab87d 100644 --- a/src/utils/rumConfig.erl +++ b/src/utils/rumConfig.erl @@ -3,6 +3,9 @@ -include("rumDef.hrl"). -include("rumCom.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -export([ init/0 , initSink/1 diff --git a/src/utils/rumStdlib.erl b/src/utils/rumStdlib.erl index a10bc2e..99fc028 100644 --- a/src/utils/rumStdlib.erl +++ b/src/utils/rumStdlib.erl @@ -1,5 +1,8 @@ -module(rumStdlib). +-compile(inline). +-compile({inline_size, 128}). + -export([ isErrorReport/1, is_my_info_report/1 diff --git a/src/utils/rumTime.erl b/src/utils/rumTime.erl index 3134972..1116f52 100644 --- a/src/utils/rumTime.erl +++ b/src/utils/rumTime.erl @@ -1,6 +1,9 @@ -module(rumTime). -include("rumTime.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -import(calendar, [day_of_the_week/1, day_of_the_week/3, iso_week_number/1, date_to_gregorian_days/1]). -export([ diff --git a/src/utils/rumUtil.erl b/src/utils/rumUtil.erl index 640e760..cdf55ec 100644 --- a/src/utils/rumUtil.erl +++ b/src/utils/rumUtil.erl @@ -4,6 +4,9 @@ -include("rumDef.hrl"). -include_lib("kernel/include/file.hrl"). +-compile(inline). +-compile({inline_size, 128}). + -export([ levels/0 , levelToNum/1 diff --git a/进度.md b/进度.md index d639124..609f007 100644 --- a/进度.md +++ b/进度.md @@ -21,4 +21,15 @@ # TODO + + rumBkdFile选项命名+默认值修改 + eRum.sameple.config 命名 +默认值修改 + rumTruncIo.erl 删掉掉 + io_lib:format 替换为 eFmt:formatBin + 各个模块审查一下 + reamde.me 整理 + trace代码整理 + eRumCfg相关代码添加 + + \ No newline at end of file