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

Tracking unsafety statistics #56

Open
efenniht opened this issue Sep 17, 2019 · 5 comments
Open

Tracking unsafety statistics #56

efenniht opened this issue Sep 17, 2019 · 5 comments
Assignees

Comments

@efenniht
Copy link
Collaborator

efenniht commented Sep 17, 2019

이제 옮길 만한 C 코드를 다 옮겼으므로 unsafe 코드를 측정하고 변화를 추적하도록 하겠습니다.

마지막 커밋 d772246 기준 (2019.9.17):

         Language  Files  Lines  Blanks  Comments  Code  Unsafe (%)
         --------  -----  -----  ------  --------  ----  ----------
         Rust      27     7881   1150    1609      5122  989 (19.31%)

이게 비교할 만한 대상인지는 모르겠지만, redox-os의 kernel을 대상으로 한 정보는 다음과 같습니다:

         Language  Files  Lines  Blanks  Comments  Code   Unsafe (%)
         --------  -----  -----  ------  --------  ----   ----------
         Rust      89     17391  2651    989       13751  485 (3.53%)

둘 다 arch 폴더 안의 코드는 제외하였습니다.

@efenniht efenniht self-assigned this Sep 17, 2019
@efenniht efenniht pinned this issue Sep 17, 2019
@jeehoonkang
Copy link
Member

I'm not quite sure, but probably I'm suffering from this issue: kbknapp/cargo-count#36

@efenniht
Copy link
Collaborator Author

이것도 약간의 문제가 있네요. 임시 방편으로 src 폴더로 들어가서 실행하면 될 것 같습니다.

@efenniht
Copy link
Collaborator Author

efenniht commented Sep 26, 2019

#57 이후:

         Language  Files  Lines  Blanks  Comments  Code  Unsafe (%)
         --------  -----  -----  ------  --------  ----  ----------
         Rust      27     8091   1174    1654      5263  915 (17.39%)

@efenniht
Copy link
Collaborator Author

efenniht commented Sep 26, 2019

#58 이후:

         Language  Files  Lines  Blanks  Comments  Code  Unsafe (%)
         --------  -----  -----  ------  --------  ----  ----------
         Rust      27     8125   1184    1650      5291  699 (13.21%)

@efenniht
Copy link
Collaborator Author

efenniht commented Sep 26, 2019

#64 + overhaul 이후:

         Language  Files  Lines  Blanks  Comments  Code  Unsafe (%)
         --------  -----  -----  ------  --------  ----  ----------
         Rust      28     8155   1185    1659      5311  611 (11.50%)

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

2 participants