Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
41c10799
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
41c10799
编写于
8月 23, 2018
作者:
M
minqiyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Port tools
上级
0dc5d9c2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
3 deletion
+6
-3
tools/check_ctest_hung.py
tools/check_ctest_hung.py
+3
-1
tools/timeline.py
tools/timeline.py
+3
-2
未找到文件。
tools/check_ctest_hung.py
浏览文件 @
41c10799
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
from
__future__
import
print_function
import
sys
import
sys
import
re
import
re
...
@@ -46,7 +48,7 @@ Diff: set(['test_parallel_executor_crf'])
...
@@ -46,7 +48,7 @@ Diff: set(['test_parallel_executor_crf'])
start_parts
=
escape
(
l
).
split
(
" "
)
start_parts
=
escape
(
l
).
split
(
" "
)
m
=
re
.
search
(
"Start\s+[0-9]+\:\s([a-z0-9_]+)"
,
escape
(
l
))
m
=
re
.
search
(
"Start\s+[0-9]+\:\s([a-z0-9_]+)"
,
escape
(
l
))
started
.
add
(
m
.
group
(
1
))
started
.
add
(
m
.
group
(
1
))
print
"Diff: "
,
started
-
passed
print
(
"Diff: "
,
started
-
passed
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
tools/timeline.py
浏览文件 @
41c10799
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
import
argparse
import
argparse
import
json
import
json
import
six
import
sys
import
sys
import
unittest
import
unittest
...
@@ -124,7 +125,7 @@ class Timeline(object):
...
@@ -124,7 +125,7 @@ class Timeline(object):
return
cur_pid
return
cur_pid
def
_allocate_pids
(
self
):
def
_allocate_pids
(
self
):
for
k
,
profile_pb
in
s
elf
.
_profile_dict
.
iteritems
(
):
for
k
,
profile_pb
in
s
ix
.
iteritems
(
self
.
_profile_dict
):
for
event
in
profile_pb
.
events
:
for
event
in
profile_pb
.
events
:
if
event
.
type
==
profiler_pb2
.
Event
.
CPU
:
if
event
.
type
==
profiler_pb2
.
Event
.
CPU
:
if
(
k
,
event
.
device_id
,
"CPU"
)
not
in
self
.
_devices
:
if
(
k
,
event
.
device_id
,
"CPU"
)
not
in
self
.
_devices
:
...
@@ -140,7 +141,7 @@ class Timeline(object):
...
@@ -140,7 +141,7 @@ class Timeline(object):
(
k
,
event
.
device_id
),
pid
)
(
k
,
event
.
device_id
),
pid
)
def
_allocate_events
(
self
):
def
_allocate_events
(
self
):
for
k
,
profile_pb
in
s
elf
.
_profile_dict
.
iteritems
(
):
for
k
,
profile_pb
in
s
ix
.
iteritems
(
self
.
_profile_dict
):
for
event
in
profile_pb
.
events
:
for
event
in
profile_pb
.
events
:
if
event
.
type
==
profiler_pb2
.
Event
.
CPU
:
if
event
.
type
==
profiler_pb2
.
Event
.
CPU
:
type
=
"CPU"
type
=
"CPU"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录