CN117707637A - Configuration file collection method, device, equipment and storage medium - Google Patents

Configuration file collection method, device, equipment and storage medium Download PDF

Info

Publication number
CN117707637A
CN117707637A CN202211098248.7A CN202211098248A CN117707637A CN 117707637 A CN117707637 A CN 117707637A CN 202211098248 A CN202211098248 A CN 202211098248A CN 117707637 A CN117707637 A CN 117707637A
Authority
CN
China
Prior art keywords
configuration files
target
file
target application
candidate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211098248.7A
Other languages
Chinese (zh)
Inventor
高雪晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211098248.7A priority Critical patent/CN117707637A/en
Publication of CN117707637A publication Critical patent/CN117707637A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the disclosure relates to a configuration file collection method, a device, equipment and a storage medium, wherein the configuration file collection method comprises the following steps: acquiring a plurality of candidate configuration files corresponding to the target application from a plurality of different user terminals, wherein the candidate configuration files comprise code segments of which the execution times in the target application are greater than a preset time threshold; and merging the plurality of candidate configuration files to obtain the target configuration file. According to the embodiment of the invention, the candidate configuration files on the user terminal can be collected, and the target configuration files are obtained by combining the plurality of candidate configuration files, so that the whole collection process is completely automatic, manual participation is not needed, a large amount of manpower is saved, and the collection efficiency is improved.

Description

Configuration file collection method, device, equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for collecting configuration files.
Background
With the development of computer technology, when an application runs in an android system, in order to improve the running efficiency of the application, the application is usually optimized when the device is in an idle state, that is, byte codes in a configuration file corresponding to the application are converted into machine codes which can be executed by a virtual machine in advance. However, since a certain code segment in an application is stored in a configuration file when it is frequently executed, the application does not have a configuration file containing the frequently executed code segment at the time of initial installation, resulting in inefficiency in running the application at the time of initial installation.
In view of this, at present, an application is usually tested and used manually to obtain a configuration file containing frequently executed code segments, but a method of manually collecting the configuration file requires a lot of manpower and is inefficient.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for collecting configuration files.
A first aspect of an embodiment of the present disclosure provides a method for collecting a configuration file, including:
acquiring a plurality of candidate configuration files corresponding to the target application from a plurality of different user terminals, wherein the candidate configuration files comprise code segments of which the execution times in the target application are greater than a preset time threshold;
and merging the plurality of candidate configuration files to obtain the target configuration file.
A second aspect of an embodiment of the present disclosure provides a profile collection apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a plurality of candidate configuration files corresponding to the target application from a plurality of different user terminals, wherein the candidate configuration files comprise code fragments of which the execution times in the target application are greater than a preset time threshold;
and the merging module is used for merging the plurality of candidate configuration files to obtain a target configuration file.
A third aspect of the disclosed embodiments provides an electronic device, comprising: a processor and a memory, wherein the memory has stored therein a computer program which, when executed by the processor, performs the method of the first aspect described above.
A fourth aspect of the disclosed embodiments provides a computer readable storage medium having stored therein a computer program which, when executed by a processor, can implement the method of the first aspect described above.
In a fifth aspect, the present disclosure provides a computer program product comprising a computer program/instruction which, when executed by a processor, implements the method of the first aspect described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the embodiment of the disclosure, a plurality of candidate configuration files corresponding to the target application are obtained from a plurality of different user terminals, wherein the candidate configuration files comprise code segments of which the execution times are greater than a preset times threshold in the target application, so that the plurality of candidate configuration files are combined to obtain the target configuration file. According to the embodiment of the invention, the candidate configuration files on the user terminal can be collected, and the target configuration files are obtained by combining the plurality of candidate configuration files, so that the whole collection process is completely automatic, manual participation is not needed, a large amount of manpower is saved, and the collection efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a method of profile collection provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart of another configuration file collection method provided by an embodiment of the present disclosure;
FIG. 3 is a flow chart of yet another configuration file collection method provided by an embodiment of the present disclosure
FIG. 4 is a schematic structural diagram of a configuration file collection device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
Fig. 1 is a flowchart of a method for collecting a configuration file, which may be performed by a configuration file collecting apparatus, and the configuration file collecting apparatus may be implemented by software and/or hardware and integrated in an electronic device, according to an embodiment of the present disclosure. As shown in fig. 1, the method provided in this embodiment includes the following steps:
s110, acquiring a plurality of candidate configuration files corresponding to the target application from a plurality of different user terminals.
The candidate configuration file comprises code segments of which the execution times in the target application are larger than a preset time threshold.
Specifically, the target application may be any application. For example, the target application may include applications of the game type, office type, video type, chat type, music type, reading type, image processing type, etc., without limitation.
Specifically, the user terminal may be any terminal in which the target application is installed. For example, the user terminal may include a mobile phone, tablet, computer, television, virtual reality device, etc., without limitation.
Specifically, for the dex2oat, when the virtual machine in the user terminal finds a certain method or code segments run particularly frequently, the code segments are identified as "hotspot codes", and the hotspot codes are recorded and saved in the profile file, so that the profile file includes code segments with execution times greater than a preset number of times threshold in the application.
And S120, merging the plurality of candidate configuration files to obtain a target configuration file.
Specifically, when the user downloads from the download platform of the target application, the target application including the target configuration file may be downloaded so that the target application has the target configuration file including frequently executed code segments at the time of initial installation, thereby improving the operation efficiency of the target application.
In some embodiments, S120 may include: code segments included in each candidate configuration file are screened out from the plurality of candidate configuration files to serve as common code segments; and storing the public code fragments in the target configuration file to obtain the target configuration file.
Therefore, the code segments in the target configuration file can be the code segments commonly used by most users, so that the probability of using the code segments in the target configuration file by the users is higher when the target application is initially installed, and the use rate of the target configuration file is further improved.
In other embodiments, S120 may include: summarizing all the code segments in the candidate configuration files to obtain a plurality of code segments; and (3) performing de-duplication processing on the plurality of code fragments, and storing the code fragments in a target configuration file to obtain the target configuration file.
Specifically, all the code segments in the candidate configuration files are summarized, i.e. the code segments in the candidate configuration files are combined.
Therefore, the target configuration file can cover various code segments commonly used by users, so that the code segments covered by the target configuration file are wider, and the code segments which the users want to use can be optimized due to being stored in the target configuration file when the target application is initially installed, and the running efficiency is further improved.
According to the embodiment of the disclosure, a plurality of candidate configuration files corresponding to the target application are obtained from a plurality of different user terminals, wherein the candidate configuration files comprise code segments of which the execution times are greater than a preset times threshold in the target application, so that the plurality of candidate configuration files are combined to obtain the target configuration file. According to the embodiment of the invention, the candidate configuration files on the user terminal can be collected, and the target configuration files are obtained by combining the plurality of candidate configuration files, so that the whole collection process is completely automatic, manual participation is not needed, a large amount of manpower is saved, and the collection efficiency is improved.
Fig. 2 is a flow chart of another configuration file collection method provided by an embodiment of the present disclosure. Embodiments of the present disclosure may be optimized based on the embodiments described above, and may be combined with various alternatives of one or more of the embodiments described above.
As shown in fig. 2, the profile collection may include the following steps.
S210, acquiring a plurality of original configuration files from a plurality of different user terminals.
Specifically, the original configuration file, that is, the profile file corresponding to the target application in the user terminal, may be used as a candidate configuration file when the size of the original configuration file is greater than the first threshold.
In some embodiments, S210 may include: receiving a plurality of original configuration files corresponding to target applications sent by a plurality of different user terminals; or downloading a plurality of original configuration files corresponding to the target applications uploaded by a plurality of different user terminals from the cloud platform; or, a plurality of original configuration files corresponding to the target applications copied from a plurality of different user terminals are read from a storage device (such as a USB flash disk or a hard disk, etc.).
S220, comparing the file sizes corresponding to the original configuration files with a first threshold value respectively to obtain comparison results.
Specifically, there are various specific setting manners of the first threshold, and a typical example will be described below, but not limited thereto.
In some embodiments, the first threshold is a fixed value that is uniformly set by those skilled in the art for all applications.
In other embodiments, the size of the target application is obtained; and determining a first threshold according to the size of the target application, wherein the size of the target application is positively correlated with the first threshold.
In one example, the size of the target application is multiplied by a preset percentage to obtain a first threshold.
In another example, selecting a target application size interval to which the size of the target application belongs from a plurality of preset application size intervals; and inquiring a threshold value corresponding to the size of the target application as a first threshold value corresponding to the target application.
Therefore, the first threshold value can be matched with the size of the target application, so that the number of code fragments contained in the candidate configuration files screened out according to the first threshold value is enough, and further the number of code fragments contained in the target configuration files obtained by combining the candidate configuration files is enough, and the code fragments can be matched with the size of the target application.
In still other embodiments, a terminal type of a terminal to which the target application is applicable is obtained; and determining a first threshold according to the terminal type, wherein the first threshold corresponding to the mobile terminal is larger than the first threshold corresponding to the fixed terminal.
Specifically, an application installed on a mobile terminal such as a mobile phone is generally large, so when a terminal to which a target application is applied is a mobile terminal, the first threshold value may be set to be slightly large, whereas an application installed on a fixed terminal such as a television is generally small, so when a terminal to which a target application is applied is a fixed terminal, the first threshold value may be set to be slightly small.
Specifically, for each original configuration file, comparing the file size of the original configuration file with a first threshold value to obtain a comparison result corresponding to each original configuration file.
S230, taking the original configuration file with the file size larger than a first threshold value as a candidate configuration file according to the comparison result.
Specifically, for each original configuration file, if the file size of the original configuration file is greater than a first threshold, the original configuration file is used as a candidate configuration file, and if the file size of the original configuration file is less than or equal to the first threshold, the original configuration file is discarded.
S240, merging the candidate configuration files to obtain a target configuration file.
Specifically, S240 is similar to S120, and will not be described here again.
According to the method and the device for processing the code segments, the original configuration files with the file sizes larger than the first threshold value are screened out to serve as candidate configuration files, the number of the code segments contained in the candidate configuration files participating in merging is enough, so that the target configuration files obtained through merging cover enough code segments, and the code segments which are wanted to be used by a user can be optimized due to the fact that the code segments are stored in the target configuration files when the target application is initially installed, and therefore operation efficiency is improved. And the contribution of the original configuration file with the file size smaller than or equal to the first threshold value to the target configuration file is small, and the original configuration file is filtered out and does not participate in merging, so that the number of candidate configuration files participating in merging is reduced, the merging efficiency is improved, and the collection efficiency of the configuration files is improved.
Fig. 3 is a flow chart of yet another configuration file collection method provided by an embodiment of the present disclosure. Embodiments of the present disclosure may be optimized based on the embodiments described above, and may be combined with various alternatives of one or more of the embodiments described above.
As shown in fig. 3, the profile collection may include the following steps.
S310, a plurality of candidate configuration files corresponding to the target application are obtained from a plurality of different user terminals.
Specifically, S310 is similar to S110, and will not be described here again.
S320, classifying the candidate configuration files according to the mode that the configuration files corresponding to different version numbers of the target application are classified into different file sets, and generating a plurality of file sets.
Specifically, for the purposes of repairing vulnerabilities of the target application, increasing functions of the target application, and the like, the target application is generally updated iteratively, and therefore, the target application generally has multiple versions, and different versions are distinguished by version numbers.
Since the versions of the target applications installed by different user terminals may be different, the plurality of candidate configuration files may include configuration files corresponding to different version numbers. And classifying the plurality of candidate configuration files to obtain file sets respectively corresponding to different version numbers, so that the configuration files in the same file set correspond to the same version number.
Specifically, for each candidate configuration file, a version number corresponding to the candidate configuration file may be determined, and the candidate configuration file may be divided into a file set corresponding to the version number corresponding to the candidate configuration file.
The specific manner of determining the version number corresponding to the candidate configuration file is not limited herein, for example, a field corresponding to the version number in the candidate configuration file may be read to obtain the version number corresponding to the candidate configuration file, but is not limited thereto.
S330, combining the candidate configuration files in the file sets corresponding to the different version numbers to obtain target configuration files corresponding to the different version numbers.
Specifically, for each file set corresponding to the version number, combining candidate configuration files in the file set corresponding to the version number to obtain a target configuration file corresponding to the version number. Thus, the target configuration file corresponding to each version number can be obtained.
In some embodiments, merging the configuration files in the set of files may include: code segments included in each candidate configuration file are screened out from the configuration files in the file set to be used as public code segments; and storing the public code fragments in the target configuration files corresponding to the file set to obtain the target configuration files corresponding to the file set.
In other embodiments, merging configuration files in a file collection may include: summarizing all code segments in all configuration files in the file set to obtain a plurality of code segments; and after performing de-duplication processing on the plurality of code fragments, storing the code fragments in a target configuration file corresponding to the file set to obtain the target configuration file corresponding to the file set.
According to the embodiment of the disclosure, the plurality of candidate configuration files are classified to generate the plurality of file sets, and the candidate configuration files in the file sets corresponding to different version numbers are respectively combined to obtain the target configuration files corresponding to different version numbers, so that the target applications of different versions can have matched target configuration files, namely, code fragments contained in the target configuration file corresponding to the target application of a certain version are code fragments corresponding to relevant functions of the target application of the version, and code fragments corresponding to functions not contained in the target application of the version are not contained, and therefore, the duty ratio and the utilization rate of effective code fragments in the target configuration files can be improved, and the storage space of a user terminal is prevented from being wasted.
In another embodiment of the present disclosure, merging candidate configuration files in a file set corresponding to different version numbers to obtain a target configuration file corresponding to different version numbers includes: and merging the candidate configuration files in the file set when the number of the candidate configuration files in the file set is larger than a second threshold value.
Specifically, there are various specific setting manners of the second threshold, and a typical example will be described below, but not limited thereto.
In some embodiments, the second threshold is a fixed value that is uniformly set by those skilled in the art for all applications.
In other embodiments, querying a preset application level corresponding to the target application according to the application type of the target application; and determining a second threshold according to the preset application level.
Specifically, the correspondence between the preset application type and the application level may be set by the following setting manner, but is not limited thereto.
In one example, an application level corresponding to the application type is determined according to a download amount corresponding to the application type, wherein the download amount and the application level are positively correlated, and correspondingly, the second threshold is positively correlated with the application level.
For the download amount corresponding to the application type, the download amount of the application with the highest download amount among the plurality of applications belonging to the application type may be used as the download amount corresponding to the application type, or the average download amount of the plurality of applications belonging to the application type may be used as the download amount corresponding to the application type, but the present invention is not limited thereto.
In another example, an application level corresponding to the application type is determined according to a use frequency corresponding to the application type, where the use frequency and the application level are positively correlated, and correspondingly, the second threshold is positively correlated with the application level.
For the frequency of use corresponding to the application type, the frequency of use corresponding to each of the plurality of applications belonging to the application type may be counted, and the frequency of use of an application having the highest frequency of use among the plurality of applications belonging to the application type may be used as the frequency of use corresponding to the application type, or the average frequency of use of the plurality of applications belonging to the application type may be used as the frequency of use corresponding to the application type, but the present invention is not limited thereto. For the application frequency, the number of calls of each of the plurality of user terminals installed with the application to call the application in a preset period (for example, 1 day, one week, etc.) may be counted, and the average number of calls of the plurality of user terminals is taken as the application frequency, but not limited thereto.
It can be understood that the second threshold is determined according to the preset application level corresponding to the target application, so that the second threshold corresponding to the application of the application type which is relatively common and preferred by most users is relatively large, and the second threshold corresponding to the application of the application type which is relatively less common and preferred by users is relatively small, so that the target configuration file corresponding to the application which is relatively common and preferred by users is relatively large, thereby being beneficial to improving the running efficiency of the application which is relatively common and preferred by users, and avoiding the problems that the target configuration file corresponding to the application which is relatively unusual and preferred by users is too large and wastes the storage space of the user terminal.
In yet another embodiment of the present disclosure, the method further comprises: and updating the target configuration file to a downloading platform of the target application so as to enable the user to download the target application containing the target configuration file.
In some embodiments, updating the target profile to the download platform of the target application may include: if the current acquisition target configuration file is the first acquisition target configuration file, uploading the current acquisition target configuration file to a downloading platform; if the current acquisition target configuration file is the nth (N is an integer greater than 1) acquisition target configuration file, the last acquired target configuration file is replaced by the current acquisition target configuration file, or a code segment which is contained in the current acquisition target configuration file and is not contained in the last acquired target configuration file is added to the last acquired target configuration file to generate a new target configuration file, but the method is not limited to the above.
It will be appreciated by those skilled in the art that when a target profile corresponding to a different version number is obtained, the corresponding target profile may be updated for each version number.
It can be appreciated that by continuously iteratively updating the target configuration file, the target configuration file can be more matched with most of the current user requirements, thereby improving the utilization rate of the target configuration file and the running efficiency of the target application.
Fig. 4 is a schematic structural diagram of a configuration file collecting apparatus according to an embodiment of the present disclosure, where the configuration file collecting apparatus may be understood as the electronic device or a part of functional modules in the electronic device. As shown in fig. 4, the profile collection apparatus 400 includes:
a first obtaining module 410, configured to obtain a plurality of candidate configuration files corresponding to the target application from a plurality of different user terminals, where the candidate configuration files include code segments in the target application, where the number of execution times is greater than a preset number of times threshold;
and the merging module 420 is configured to merge the plurality of candidate configuration files to obtain a target configuration file.
According to the embodiment of the disclosure, a plurality of candidate configuration files corresponding to the target application are obtained from a plurality of different user terminals, wherein the candidate configuration files comprise code segments of which the execution times are greater than a preset times threshold in the target application, so that the plurality of candidate configuration files are combined to obtain the target configuration file. According to the embodiment of the invention, the candidate configuration files on the user terminal can be collected, and the target configuration files are obtained by combining the plurality of candidate configuration files, so that the whole collection process is completely automatic, manual participation is not needed, a large amount of manpower is saved, and the collection efficiency is improved.
In another embodiment of the present disclosure, the first acquisition module 410 may include:
the first acquisition sub-module is used for acquiring a plurality of original configuration files from a plurality of different user terminals;
the comparison sub-module is used for comparing a plurality of file sizes corresponding to a plurality of original configuration files with a first threshold corresponding to a target application respectively to obtain a comparison result;
and the first determining submodule is used for taking the original configuration file with the file size larger than the first threshold value as a candidate configuration file according to the comparison result.
In yet another embodiment of the present disclosure, the apparatus further comprises:
the second acquisition sub-module is used for acquiring the size of the target application;
and the second determining submodule is used for determining a first threshold according to the size of the target application, wherein the size of the target application is positively correlated with the first threshold.
In yet another embodiment of the present disclosure, the combining module 420 may include:
the classifying sub-module is used for classifying the candidate configuration files according to the mode that the configuration files corresponding to different version numbers of the target application are classified into different file sets, so as to generate a plurality of file sets;
and the merging sub-module is used for merging the candidate configuration files in the file sets corresponding to the different version numbers to obtain target configuration files corresponding to the different version numbers.
In yet another embodiment of the present disclosure, the merging sub-module may include:
and the merging unit is used for merging the candidate configuration files in the file set when the number of the candidate configuration files in the file set is larger than a second threshold value.
In yet another embodiment of the present disclosure, the apparatus further comprises:
the query module is used for querying a preset application level corresponding to the target application according to the application type of the target application;
and the determining module is used for determining a second threshold according to the preset application level.
In yet another embodiment of the present disclosure, the apparatus further comprises:
and the updating module is used for updating the target configuration file to a downloading platform of the target application so as to enable the user to download the target application containing the target configuration file.
The device provided in this embodiment can execute the method of any one of the above embodiments, and the execution mode and the beneficial effects thereof are similar, and are not described herein again.
In addition to the methods and apparatus described above, embodiments of the present disclosure also provide a computer-readable storage medium having instructions stored therein that, when executed on an electronic device, cause the electronic device to implement the methods of any of the embodiments described above.
The disclosed embodiments also provide a computer program product comprising a computer program/instruction which, when executed by a processor, implements the method of any of the embodiments described above.
The embodiment of the disclosure also provides an electronic device, which comprises: a memory in which a computer program is stored; a processor for executing the computer program, which when executed by the processor can implement the method of any of the above embodiments.
By way of example, fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Referring now in particular to fig. 5, a schematic diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 500 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the client, electronic device, and the like may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a plurality of candidate configuration files corresponding to the target application from a plurality of different user terminals, wherein the candidate configuration files comprise code segments of which the execution times in the target application are greater than a preset time threshold; and merging the plurality of candidate configuration files to obtain the target configuration file.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The embodiments of the present disclosure further provide a computer readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, may implement a method according to any one of the foregoing embodiments, and the implementation manner and beneficial effects of the method are similar, and are not described herein again.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A method for collecting configuration files, comprising:
acquiring a plurality of candidate configuration files corresponding to a target application from a plurality of different user terminals, wherein the candidate configuration files comprise code fragments of which the execution times in the target application are greater than a preset time threshold;
and merging the candidate configuration files to obtain a target configuration file.
2. The method according to claim 1, wherein the obtaining a plurality of candidate configuration files corresponding to the target application from a plurality of different user terminals includes:
acquiring a plurality of original configuration files from a plurality of different user terminals;
comparing a plurality of file sizes corresponding to the plurality of original configuration files with a first threshold corresponding to the target application respectively to obtain a comparison result;
and taking the original configuration file with the file size larger than the first threshold value as the candidate configuration file according to the comparison result.
3. The method as recited in claim 2, further comprising:
acquiring the size of the target application;
and determining the first threshold according to the size of the target application, wherein the size of the target application is positively correlated with the first threshold.
4. The method of claim 1, wherein the merging the plurality of candidate profiles to obtain the target profile comprises:
classifying the candidate configuration files according to the mode that configuration files corresponding to different version numbers of the target application are classified into different file sets, so as to generate a plurality of file sets;
and merging candidate configuration files in the file sets corresponding to the different version numbers to obtain target configuration files corresponding to the different version numbers.
5. The method of claim 4, wherein merging candidate configuration files in the file set corresponding to different version numbers to obtain the target configuration file corresponding to different version numbers comprises:
and merging the candidate configuration files in the file set when the number of the candidate configuration files in the file set is larger than a second threshold value.
6. The method as recited in claim 5, further comprising:
inquiring a preset application level corresponding to the target application according to the application type of the target application;
and determining the second threshold according to the preset application level.
7. The method as recited in claim 1, further comprising:
and updating the target configuration file to a downloading platform of the target application so as to enable a user to download the target application containing the target configuration file.
8. A profile collection apparatus, comprising:
the first acquisition module is used for acquiring a plurality of candidate configuration files corresponding to the target application from a plurality of different user terminals, wherein the candidate configuration files comprise code segments of which the execution times in the target application are greater than a preset time threshold;
and the merging module is used for merging the plurality of candidate configuration files to obtain a target configuration file.
9. An electronic device, comprising:
a processor and a memory, wherein the memory has stored therein a computer program which, when executed by the processor, performs the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that the storage medium has stored therein a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
11. A computer program product, characterized in that it comprises a computer program/instruction which, when executed by a processor, implements the method according to any of claims 1-7.
CN202211098248.7A 2022-09-08 2022-09-08 Configuration file collection method, device, equipment and storage medium Pending CN117707637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211098248.7A CN117707637A (en) 2022-09-08 2022-09-08 Configuration file collection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211098248.7A CN117707637A (en) 2022-09-08 2022-09-08 Configuration file collection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117707637A true CN117707637A (en) 2024-03-15

Family

ID=90162980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211098248.7A Pending CN117707637A (en) 2022-09-08 2022-09-08 Configuration file collection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117707637A (en)

Similar Documents

Publication Publication Date Title
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN110795446A (en) List updating method and device, readable medium and electronic equipment
CN110784520A (en) File downloading method and device and electronic equipment
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN112099982A (en) Collapse information positioning method, device, medium and electronic equipment
CN111352957A (en) Remote dictionary service optimization method and related equipment
CN111857720A (en) Method and device for generating user interface state information, electronic equipment and medium
CN113220281A (en) Information generation method and device, terminal equipment and storage medium
CN117707637A (en) Configuration file collection method, device, equipment and storage medium
CN110620808A (en) Method and device for pushing information
CN113360348B (en) Abnormal request processing method and device, electronic equipment and storage medium
CN111258582B (en) Window rendering method and device, computer equipment and storage medium
CN111756833B (en) Node processing method, node processing device, electronic equipment and computer readable medium
CN113660699A (en) Intelligent cluster networking method and device and electronic equipment
CN110413603B (en) Method and device for determining repeated data, electronic equipment and computer storage medium
CN113032046A (en) Method, device and equipment for repairing so file and storage medium
CN114138149A (en) Data screening method and device, readable medium and electronic equipment
CN113177169A (en) Network address category acquisition method, device, equipment and storage medium
CN112417276A (en) Paging data acquisition method and device, electronic equipment and computer readable storage medium
CN112333462A (en) Live broadcast room page jumping method, returning device and electronic equipment
CN112162682A (en) Content display method and device, electronic equipment and computer readable storage medium
CN110619079A (en) Method and device for pushing information
CN117707610A (en) Application optimization method, device, equipment and storage medium
CN112804457B (en) Photographing parameter determination method and device and electronic equipment
CN117369953B (en) Mirror synchronization method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination