Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Giving a program priority briefly
- Date: Mon, 11 Jun 2007 10:34:01 +0900
- From: "Nguyen Vu Hung" <vuhung16plus@example.com>
- Subject: Re: [tlug] Giving a program priority briefly
- References: <466B5A87.7000002@dcook.org> <78d7dd350706100221u524aa0baxa6498541674863b0@mail.gmail.com> <466BD066.90302@dcook.org> <78d7dd350706101016x184c0a29tbda67c68d66191ed@mail.gmail.com> <466C7778.1050803@dcook.org>
On 6/11/07, Darren Cook <darren@example.com> wrote:> Have you ever heard of lcov or tools like such? > http://ltp.sourceforge.net/coverage/lcov.php > When you use that, we know exactly what part of code need to be > refactored - not by reading the code.
Refactoring is the art of changing the code to make it more readable/expandable (usually with a future addition in mind, not just for the sake of itself), without changing functionality. Coverage doesn't seem to be related (coverage tools are used to see if you have enough tests).
Darren
I know. You can use lcov to do a coverage test and get a report generated from it. A valuable statistic in lcov report is that you can see what part of the code are executed, and how many times it has been called. For example, you can see a function is called 10000 times and a nested loop is executed 2000 times while another part of code is dead. By rewriting them, we reserve the functionality of the code yet it becomes faster.
-- Best Regards, Nguyen Hung Vu vuhung16plus{remove}@example.com An inquisitive look at Harajuku http://www.flickr.com/photos/vuhung/sets/72157600109218238/
- Follow-Ups:
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- References:
- [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] contribution to F/OSS community
- Next by Date: Re: [tlug] Can we still order TLUG t-shirts?
- Previous by thread: Re: [tlug] Giving a program priority briefly
- Next by thread: Re: [tlug] Giving a program priority briefly
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links