Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
llvm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
llvm-watermarker
Commits
b189523c
Commit
b189523c
authored
Dec 02, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
集計を効率化
parent
75db8254
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
aggregate.zsh
scripts/aggregate.zsh
+2
-6
analyze.zsh
scripts/analyze.zsh
+1
-4
No files found.
scripts/aggregate.zsh
View file @
b189523c
...
@@ -16,14 +16,10 @@ f() {
...
@@ -16,14 +16,10 @@ f() {
h
()
{
h
()
{
R
=
$(
f
$@
)
R
=
$(
f
$@
)
FILES
=
$(
echo
$R
|
wc
-l
)
FUNCS
=
$(
echo
$R
|
awk
'{a+=$2} END {print a}'
)
BLOCKS
=
$(
echo
$R
|
awk
'{a+=$3} END {print a}'
)
BITS
=
$(
echo
$R
|
awk
'{a+=$4} END {print a}'
)
echo
"file, funcs, blocks, bits"
echo
"file, funcs, blocks, bits"
echo
$R
echo
"
$R
"
echo
"
files:
$FILES
, funcs:
$FUNCS
, blocks:
$BLOCKS
, bits:
$BITS
"
echo
"
$R
"
|
awk
'{f++; a+=$2; b+=$3; c+=$4} END {print "files: " f ", funcs: " a ", blocks: " b ", bits: " c}'
}
}
h obj/example/8cc/stage1-wm/
*
-log
.txt
h obj/example/8cc/stage1-wm/
*
-log
.txt
...
...
scripts/analyze.zsh
View file @
b189523c
...
@@ -15,13 +15,10 @@ f() {
...
@@ -15,13 +15,10 @@ f() {
h
()
{
h
()
{
R
=
$(
f
$@
)
R
=
$(
f
$@
)
FILES
=
$(
echo
$R
|
wc
-l
)
SIZE
=
$(
echo
$R
|
awk
'{a+=$2} END {print a}'
)
LINES
=
$(
echo
$R
|
awk
'{a+=$3} END {print a}'
)
echo
"name, size, lines"
echo
"name, size, lines"
echo
"
$R
"
echo
"
$R
"
echo
"
files:
$FILES
, size:
$SIZE
, lines:
$LINES
"
echo
"
$R
"
|
awk
'{f++; s+=$2; l+=$3} END {print "files: " f ", size: " s ", lines: " l}'
}
}
h
`
ls
example/8cc/8cc/
*
.c |
awk
-F
'example/8cc/8cc/utiltest.c'
'{print $NF}'
`
h
`
ls
example/8cc/8cc/
*
.c |
awk
-F
'example/8cc/8cc/utiltest.c'
'{print $NF}'
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment