Techniques to identify and purge unused code
Abstract
An apparatus to identify and purge unused code may comprise a processor circuit on a device and a storage component configured to store a codebase including one or more portions of programming code. The apparatus may further comprise a sampling component, a profiling component, and a purge component. The sampling component may sample the codebase and generate one or more leads identifying portions of programming code from the codebase determined to be unused during a sampling period. The profiling component may receive the one or more leads and profile programming code identified therein during a profiling period and to identify portions of programming code determined to be unused during the profiling period. The purge component may receive identification of the portions of programming code determined to be unused during the profiling period and initiate a purging process thereon. Other embodiments are described and claimed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus comprising: a processor circuit on a device; a storage component configured to store a codebase including one or more portions of programming code; a sampling component operative on the processor circuit to monitor program behavior during a sampling period of program activity to identify portions of programming code from the codebase determined to be unused during the sampling period; a profiling component operative on the processor circuit to determine a subset of the identified portions of programming code that is unused during a profiling period; and a purge component operative
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (28)
Non-Patent Literature (5)
- Cleanscape C++lint User's Guide Version 3.1, Cleanscape software international, 2010, 45 pages, [retrieved on Jul. 2, 2015], Retrieved from the Internet: <URL:https://stellar.cleanscape.net/docs-lib/cpplint-guide.pdf>.
- Cleanscape C++lint User's Guide Version 3.1, Cleanscape software international, 2010, 45 pages, [retrieved on Jul. 2, 2015], Retrieved from the Internet: <URL:https://stellar.cleanscape.net/docs—lib/cpplint—guide.pdf>.
- Eder, S., et al., How much does unused code matter for maintenance?, 34th International Conference on Software Engineering (ICSE), Jun. 2-9, 2012, pp. 1102-1111, [retrieved on Mar. 25, 2017], Retrieved from the Internet: <URL:http://ieeexplore.ieee.org/>.
- UCDetector: Unnecessary Code Detector, Apr. 5, 2012, 4 pages, [retrieved on Mar. 25, 2017], Retrieved from the Internet: <URL:http://web.archive.org/web/20120405010419/http://www.ucdetector.org>.
- Wikipedia-"Dead Code Elimination", retrieved Oct. 31, 2013 from <http://en.wikipedia.org/wiki/Dead-code-elimination>, 3 pages, author unknown.