Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
DoraemonKit
提交
728b7f3a
D
DoraemonKit
项目概览
DiDi
/
DoraemonKit
9 个月 前同步成功
通知
166
Star
19623
Fork
3062
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DoraemonKit
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
728b7f3a
编写于
10月 15, 2019
作者:
Y
yixiangboy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Internationalization
上级
711ed096
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
27 addition
and
7 deletion
+27
-7
iOS/DoraemonKit/Resource/en.lproj/Doraemon.strings
iOS/DoraemonKit/Resource/en.lproj/Doraemon.strings
+11
-1
iOS/DoraemonKit/Resource/zh-Hans.lproj/Doraemon.strings
iOS/DoraemonKit/Resource/zh-Hans.lproj/Doraemon.strings
+10
-0
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m
+3
-3
iOS/DoraemonKit/Src/Core/Plugin/TimeProfiler/DoraemonTimeProfilerViewController.m
.../Plugin/TimeProfiler/DoraemonTimeProfilerViewController.m
+1
-1
iOS/DoraemonKit/Src/MLeaksFinder/DoraemonMLeaksFinderViewController.m
...Kit/Src/MLeaksFinder/DoraemonMLeaksFinderViewController.m
+1
-1
iOS/DoraemonKitDemo/DoraemonKitDemo/DemoVC/Home/DoraemonDemoHomeViewController.m
...aemonKitDemo/DemoVC/Home/DoraemonDemoHomeViewController.m
+1
-1
未找到文件。
iOS/DoraemonKit/Resource/en.lproj/Doraemon.strings
浏览文件 @
728b7f3a
...
...
@@ -200,7 +200,7 @@
"消息体" = "Message Body";
"检测记录" = "Monitor results";
"帧率检测" = "FPS monitor";
"大图检测" = "Large
image detection
";
"大图检测" = "Large
Image
";
"大图检测开关" = "Larage image detection switch";
"启动耗时" = "Start time";
"启动耗时统计" = "Start time statistics";
...
...
@@ -254,4 +254,14 @@
"温馨提示" = "tips";
"你可以通过下面地址访问" = "access server address";
"服务已关闭" = "server is off";
"UI层级检查" = "UI Hierarchy";
"UI层级检查开关" = "UI Hierarchy switch";
"函数耗时" = "Time Profiler";
"内存泄漏" = "Memory Leak";
"内存泄漏检测开关" = "Memory Leak Switch";
"泄漏检测弹框提醒" = "Memory Leak Alert Warning";
"内存泄漏测试" = "Memory Leak Test";
"日志" = "Log";
"缓存" = "Cache";
"信息" = "Info";
}
iOS/DoraemonKit/Resource/zh-Hans.lproj/Doraemon.strings
浏览文件 @
728b7f3a
...
...
@@ -248,4 +248,14 @@
"UIWebView" = "UIWebView";
"显示入口" = "显示入口";
"隐藏入口" = "隐藏入口";
"UI层级检查" = "UI层级检查";
"UI层级检查开关" = "UI层级检查开关";
"函数耗时" = "函数耗时";
"内存泄漏" = "内存泄漏";
"内存泄漏检测开关" = "内存泄漏检测开关";
"泄漏检测弹框提醒" = "泄漏检测弹框提醒";
"内存泄漏测试" = "内存泄漏测试";
"日志" = "日志";
"缓存" = "缓存";
"信息" = "信息";
}
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m
浏览文件 @
728b7f3a
...
...
@@ -417,21 +417,21 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
{
NSArray
*
dataArray
=
@{
@
(
DoraemonManagerPluginType_DoraemonWeexLogPlugin
)
:
@[
@{
kTitle
:
@"日志"
},
@{
kTitle
:
DoraemonLocalizedString
(
@"日志"
)
},
@{
kDesc
:
@"Weex日志显示"
},
@{
kIcon
:
@"doraemon_log"
},
@{
kPluginName
:
@"DoraemonWeexLogPlugin"
},
@{
kAtModule
:
@"Weex专区"
}
],
@
(
DoraemonManagerPluginType_DoraemonWeexStoragePlugin
)
:
@[
@{
kTitle
:
@"缓存"
},
@{
kTitle
:
DoraemonLocalizedString
(
@"缓存"
)
},
@{
kDesc
:
@"weex storage 查看"
},
@{
kIcon
:
@"doraemon_file"
},
@{
kPluginName
:
@"DoraemonWeexStoragePlugin"
},
@{
kAtModule
:
@"Weex专区"
}
],
@
(
DoraemonManagerPluginType_DoraemonWeexInfoPlugin
)
:
@[
@{
kTitle
:
@"信息"
},
@{
kTitle
:
DoraemonLocalizedString
(
@"信息"
)
},
@{
kDesc
:
@"weex 信息查看"
},
@{
kIcon
:
@"doraemon_app_info"
},
@{
kPluginName
:
@"DoraemonWeexInfoPlugin"
},
...
...
iOS/DoraemonKit/Src/Core/Plugin/TimeProfiler/DoraemonTimeProfilerViewController.m
浏览文件 @
728b7f3a
...
...
@@ -19,7 +19,7 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
title
=
@"函数耗时"
;
self
.
title
=
DoraemonLocalizedString
(
@"函数耗时"
)
;
NSString
*
contet
=
@"
\n\n\n
函数不提供UI操作界面,在你需要分析的代码之前插入
\n\n
[DoraemonTimeProfiler startRecord];
\n\n
结束的地方加上
\n\n
[DoraemonTimeProfiler stopRecord];
\n\n
然后手动操作App执行代码流程,即可在控制台看到完整的函数耗时分析。
\n\n
sdk过滤了代码调用层次>10层,耗时小于1ms的函数调用,当然你也可以通过api自行设置。
\n\n
分析完毕之后,记得删掉startRecord和stopRecord的函数调用。"
;
_contentLabel
=
[[
UILabel
alloc
]
init
];
...
...
iOS/DoraemonKit/Src/MLeaksFinder/DoraemonMLeaksFinderViewController.m
浏览文件 @
728b7f3a
...
...
@@ -25,7 +25,7 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
title
=
@"内存泄漏
检查
"
;
self
.
title
=
@"内存泄漏"
;
_switchView
=
[[
DoraemonCellSwitch
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
bigTitleView
.
doraemon_bottom
,
self
.
view
.
doraemon_width
,
53
)];
[
_switchView
renderUIWithTitle
:
DoraemonLocalizedString
(
@"内存泄漏检测开关"
)
switchOn
:[[
DoraemonCacheManager
sharedInstance
]
memoryLeak
]];
...
...
iOS/DoraemonKitDemo/DoraemonKitDemo/DemoVC/Home/DoraemonDemoHomeViewController.m
浏览文件 @
728b7f3a
...
...
@@ -77,7 +77,7 @@
}
else
if
(
row
==
7
){
txt
=
DoraemonLocalizedString
(
@"通用测试Demo"
);
}
else
if
(
row
==
8
){
txt
=
@"内存泄漏测试"
;
txt
=
DoraemonLocalizedString
(
@"内存泄漏测试"
)
;
}
cell
.
textLabel
.
text
=
txt
;
return
cell
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录