Code slimming method and device, computer equipment and storage medium

The invention relates to the technical field of computers, and discloses a code slimming method and device, computer equipment and a storage medium, and the method comprises the following steps: in response to a selection operation on at least one non-running method in a target non-running method se...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HUANG CHENG, GUO SUYANG, XIONG CHAO, YING KUOHAO, HOU BINGLING
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention relates to the technical field of computers, and discloses a code slimming method and device, computer equipment and a storage medium, and the method comprises the following steps: in response to a selection operation on at least one non-running method in a target non-running method set, obtaining a method coordinate of each to-be-cleaned method; querying a code block corresponding to each to-be-cleaned method from a design file of the target application program according to a method coordinate of each to-be-cleaned method; analyzing a call chain corresponding to each to-be-cleaned method according to a method coordinate corresponding to each to-be-cleaned method and a design file of the target application program; determining a calling position of a called method in all the to-be-cleaned methods according to all the calling chains; and deleting the code at the calling position and the code block corresponding to each to-be-cleaned method, so that the code quantity of the target application prog