Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overflows in profiler #30

Closed
ckirsch opened this issue Sep 2, 2017 · 0 comments
Closed

Overflows in profiler #30

ckirsch opened this issue Sep 2, 2017 · 0 comments

Comments

@ckirsch
Copy link
Member

ckirsch commented Sep 2, 2017

The profiler overflows for the following (long-running) invocation:

> $ ./selfie -c selfie.c -m 4 -c selfie.c -m 2 -c selfie.c                                                                                                                                                                 [±master ✓]
./selfie: this is selfie compiling selfie.c with starc
./selfie: 191548 characters read in 7576 lines and 1032 comments
./selfie: with 105824(55.24%) characters in 31199 actual symbols
./selfie: 270 global variables, 311 procedures, 455 string literals
./selfie: 2094 calls, 809 assignments, 71 while, 627 if, 287 return
./selfie: 129704 bytes generated with 30755 instructions and 6684 bytes of data
./selfie: this is selfie executing selfie.c with 4MB of physical memory on mipster
selfie.c: this is selfie compiling selfie.c with starc
selfie.c: 191548 characters read in 7576 lines and 1032 comments
selfie.c: with 105824(55.24%) characters in 31199 actual symbols
selfie.c: 270 global variables, 311 procedures, 455 string literals
selfie.c: 2094 calls, 809 assignments, 71 while, 627 if, 287 return
selfie.c: 129704 bytes generated with 30755 instructions and 6684 bytes of data
selfie.c: this is selfie executing selfie.c with 2MB of physical memory on mipster
selfie.c: this is selfie compiling selfie.c with starc
selfie.c: 191548 characters read in 7576 lines and 1032 comments
selfie.c: with 105824(55.24%) characters in 31199 actual symbols
selfie.c: 270 global variables, 311 procedures, 455 string literals
selfie.c: 2094 calls, 809 assignments, 71 while, 627 if, 287 return
selfie.c: 129704 bytes generated with 30755 instructions and 6684 bytes of data
selfie.c: selfie.c exiting with exit code 0 and 1.37MB of mallocated memory
selfie.c: this is selfie terminating selfie.c with exit code 0 and 1.25MB of mapped memory
selfie.c: profile: total,max(ratio%)@addr(line#),2max(ratio%)@addr(line#),3max(ratio%)@addr(line#)
selfie.c: calls: 81494266,36060198(44.44%)@0x321C(~1438),18003399(22.12%)@0x35DC(~1481),9274087(11.38%)@0x327C(~1444)
selfie.c: loops: 3086455,2577721(84.03%)@0x7724(~2465),315373(10.22%)@0x3D10(~1565),85724(2.77%)@0x5EF8(~2063)
selfie.c: loads: 636395737,36060198(5.66%)@0x3230(~1438),18003399(2.82%)@0x35F0(~1481),18003313(2.82%)@0x3674(~1486)
selfie.c: stores: 356401479,36060198(10.12%)@0x3220(~1438),18003399(5.05%)@0x35E0(~1481),18003313(5.05%)@0x367C(~1486)
./selfie: selfie.c exiting with exit code 0 and 4.43MB of mallocated memory
./selfie: this is selfie terminating selfie.c with exit code 0 and 3.50MB of mapped memory
./selfie: profile: total,max(ratio%)@addr(line#),2max(ratio%)@addr(line#),3max(ratio%)@addr(line#)
./selfie: calls: 363159223,1213337728(344.82%)@0x140B8(~5375),1213337407(344.82%)@0x13EE8(~5354),1156375854(322.58%)@0x15F8C(~5834)
./selfie: stores: 2011320912,1213337728(60.60%)@0x140BC(~5375),1213337407(60.60%)@0x13EEC(~5354),1156375854(57.80%)@0x15F90(~5834)

Notice the missing loops and loads lines at the very end as well as the meaningless percentage numbers in the calls line.

@ckirsch ckirsch closed this as completed Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant