小编Ros*_*ton的帖子

如何在构建期间测量CPU,内存和磁盘使用情况?

我正在努力改善我的构建时间,并希望得到一些反馈来衡量我的问题所在.

我在Linux CentOS系统上使用GNU Make来构建Linux内核以及一些应用程序代码.我可以运行Make with'time'来获得完整构建的总体时间,但这并不能告诉我瓶颈在哪里.

我使用-j和Make在我的构建机器上的多个核心上运行它,但是我在构建过程中运行了顶层并注意到CPU核心通常是空闲的.

有关在构建期间测量磁盘和内存使用情况的最佳方法的任何建议吗?

还有什么我应该测量的吗?

没有偏好基于文本或GUI - 无论给我一些我可以使用的数据.

linux build-process makefile build

5
推荐指数
1
解决办法
245
查看次数

Expect(语言)“无法编译正则表达式模式:量词操作数无效”错误

我在使用 Expect 正则表达式时遇到问题。

我试图匹配这个输出:

RUC.hg0         :                     6                  +6
ITPOK.hg0       :                     6                  +6
ITUC.hg0        :                     6                  +6
ITPKT.hg0       :                     6                  +6
IT127.hg0       :                     6                  +6
ITBYT.hg0       :                   456                +456
IR127.hg0       :                     6                  +6
IRPKT.hg0       :                     6                  +6
IRUC.hg0        :                     6                  +6
IRPOK.hg0       :                     6                  +6
IRBYT.hg0       :                   456                +456
IRJUNK.hg0      :                     1                  +1
Run Code Online (Sandbox Code Playgroud)

我想从行中的“+6”中取出“6”:

ITPKT.hg0       :                     6                  +6
Run Code Online (Sandbox Code Playgroud)

我正在使用这个正则表达式:

ITPKT.*\+(\[0-9])
Run Code Online (Sandbox Code Playgroud)

但是当我运行脚本时出现错误:

couldn't compile regular expression pattern: quantifier operand invalid
    while executing

"expect -re "ITPKT.*\+(\[0-9])" { 
       puts "$expect_out(1, string)";
       set snt $expect_out(1, …
Run Code Online (Sandbox Code Playgroud)

expect

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

build ×1

build-process ×1

expect ×1

linux ×1

makefile ×1