CN109446087A - A kind of method of information diagnosis, system and associated component - Google Patents
A kind of method of information diagnosis, system and associated component Download PDFInfo
- Publication number
- CN109446087A CN109446087A CN201811269748.6A CN201811269748A CN109446087A CN 109446087 A CN109446087 A CN 109446087A CN 201811269748 A CN201811269748 A CN 201811269748A CN 109446087 A CN109446087 A CN 109446087A
- Authority
- CN
- China
- Prior art keywords
- diagnostic
- function library
- library
- address mapping
- mapping information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
Abstract
This application discloses a kind of methods of information diagnosis, and the method includes when receiving when diagnostic message, judging whether to the corresponding diagnostic function library of diagnostic message include address mapping information;Wherein, address mapping information compiles the header file of third party's function library specifically by the form of dynamic link;If so, loading diagnostic function library according to address mapping information loading third-party function library, obtaining diagnostics library to be run;Diagnostics library to be run is run, to treat diagnostic message execution information diagnostic operation.This method can reduce diagnostic software total file size, save Internet resources.Disclosed herein as well is a kind of system of information diagnosis, a kind of computer readable storage medium and a kind of electronic equipment, have the above beneficial effect.
Description
Technical field
This application involves technical field of information processing, in particular to a kind of method of information diagnosis, system, a kind of computer
Readable storage medium storing program for executing and a kind of electronic equipment.
Background technique
It would generally be used in diagnostic software dynamic base to STL (Standard Template Library, quasi-mode of getting the bid
Plate library) Standard Template Library.Static linkage is used when compiling in diagnostic software function library using STL Standard Template Library, therefore existing
There is technology the STL Standard Template Library function code used can be all directly linked to diagnostic function library, so that diagnostic software
Function library file becomes larger.
Currently, the diagnostic device product based on android system is to call diagnostic software corresponding dynamic by JNI on the market
State library will use STL Standard Template Library in diagnostic software dynamic base.When using STL Standard Template Library, since STL is marked
Quasi- library is not system dynamic base, in JNI calling if using dynamically load, is needed by loading dynamic base by hand, and lead to
Cross manual land used location mapping and find corresponding method use, but header file is more in the library STL, it is corresponding for the outer method used also compared with
It is more, in use if necessary to go address of cache by hand, then heavy workload, so current scheme are as follows: to the library STL into
Row static compilation can greatly increase the memory headroom that diagnostic software occupies equipment in this way, waste a large amount of net to each function library
Network resource.
Therefore, diagnostic software total file size how is reduced, saving Internet resources is that those skilled in the art need at present
The technical issues of solution.
Apply for content
The purpose of the application is to provide the method, system, a kind of computer readable storage medium and one of a kind of information diagnosis
Kind electronic equipment, can reduce diagnostic software total file size, save Internet resources.
In order to solve the above technical problems, the application provides a kind of method of information diagnosis, this method comprises:
When receiving when diagnostic message, whether judgement is described reflects including address to the corresponding diagnostic function library of diagnostic message
Penetrate information;Wherein, the address mapping information compiles the header file of third party's function library specifically by the form of dynamic link;
If so, loading third party's function library according to the address mapping information, the diagnostic function library is loaded, is obtained
To diagnostics library to be run;
Run the diagnostics library to be run, so as to described to diagnostic message execution information diagnostic operation.
Optionally, in judgement it is described whether include address mapping information to the corresponding diagnostic function library of diagnostic message before,
Further include:
Receive diagnostic software compiler directive;
The diagnostic function library is determined according to the diagnostic software compiler directive;
Judge whether there is third party's function library corresponding with the diagnostic function library;
If so, compiling the header file of third party's function library by way of dynamic link;
The diagnostic function library is added to using the header file as the address mapping information, and by the diagnostic function
The corresponding flag bit in library is set as 1.
It optionally, whether include address mapping information to the corresponding diagnostic function library of diagnostic message described in the judgement, tool
Body includes:
Judge whether the corresponding flag bit in the diagnostic function library is 1;If so, determining that the diagnostic function library includes institute
State address mapping information;If it is not, then determining that the diagnostic function library does not include the address mapping information.
Optionally, run the diagnostics library to be run so as to described to diagnostic message execution information diagnostic operation, specifically
Include:
The diagnostics library to be run is run, by way of JNI to grasp to described diagnose to diagnostic message execution information
Make.
Present invention also provides a kind of system of information diagnosis, which includes:
Judgment module, for when receiving when diagnostic message, judgement to be described to the corresponding diagnostic function library of diagnostic message
It whether include address mapping information;Wherein, the address mapping information compiles third party specifically by the form of dynamic link
The header file of function library;
Loading module, for when described when the corresponding diagnostic function library of diagnostic message includes the address mapping information,
Third party's function library is loaded according to the address mapping information, the diagnostic function library is loaded, obtains diagnostics library to be run;
Diagnostic module, for running the diagnostics library to be run, to be grasped to described diagnosed to diagnostic message execution information
Make.
Optionally, the system also includes:
Collector is examined according to diagnostic software compiler directive determination for receiving diagnostic software compiler directive
Disconnected function library;It is also used to judge whether there is third party's function library corresponding with the diagnostic function library;If so, passing through dynamic
The header file of form compiling third party's function library of link;It is added to using the header file as the address mapping information described
Diagnostic function library, and be 1 by the corresponding mark position in the diagnostic function library.
Optionally, the judgment module is specially described when diagnostic message when receiving, and judges the diagnostic function library
Corresponding flag bit whether the module for being 1;Wherein, when the flag bit is 1, then the diagnostic function library includes the address
Map information;When the flag bit is not 1, then the diagnostic function library does not include the address mapping information.
Optionally, the diagnostic module runs the diagnostics library to be run specifically by the mode of JNI, so as to described
Module to diagnostic message execution information diagnostic operation.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, computer program
The step of method that above- mentioned information diagnosis is realized when execution executes.
Present invention also provides a kind of electronic equipment, including memory and processor, computer journey is stored in memory
The step of sequence, processor realizes above- mentioned information diagnosis method when calling the computer program in memory executes.
This application provides a kind of methods of information diagnosis when receiving when diagnostic message, judges corresponding to diagnostic message
Diagnostic function library whether include address mapping information;Wherein, address mapping information is compiled specifically by the form of dynamic link
Translate the header file of third party's function library;If so, loading diagnostic function according to address mapping information loading third-party function library
Library obtains diagnostics library to be run;Diagnostics library to be run is run, to treat diagnostic message execution information diagnostic operation.
The application is by before loading diagnostic function library, first determining whether diagnostic function library includes address of cache letter
Breath reloads the strain of diagnostic function library according to address mapping information elder generation loading third-party function library if including address mapping information
Carry out information diagnosis operation.Since the address mapping information mentioned in the application is to compile third party by way of dynamic link
The header file of function library, the size of data of the header file are much smaller than the size of data in diagnostic function library, therefore with header file
Diagnostic function library only includes function size itself without the size comprising third party's function library, can be with further as header file
As the address information of third party's function library, third party's function can be determined according to header file when needing loading third-party function library
The address in energy library.Therefore, the application can reduce diagnostic software total file size, save Internet resources.The application also mentions simultaneously
System, a kind of computer readable storage medium and a kind of electronic equipment of a kind of information diagnosis have been supplied, there is above-mentioned beneficial effect,
Details are not described herein.
Detailed description of the invention
In ord to more clearly illustrate embodiments of the present application, attached drawing needed in the embodiment will be done simply below
It introduces, it should be apparent that, the drawings in the following description are only some examples of the present application, for ordinary skill people
For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the method for information diagnosis provided by the embodiment of the present application;
Fig. 2 is a kind of flow chart of the change Compilation Method of third party's function library provided by the embodiment of the present application;
Fig. 3 is a kind of structural schematic diagram of the system of information diagnosis provided by the embodiment of the present application;
Fig. 4 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 5 is the structure chart of another electronic equipment provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Below referring to Figure 1, Fig. 1 is a kind of flow chart of the method for information diagnosis provided by the embodiment of the present application.
Specific steps may include:
S101: when receiving when diagnostic message, judge whether to the corresponding diagnostic function library of diagnostic message include address
Map information;If so, into S102;
Wherein, address mapping information compiles the header file of third party's function library specifically by the form of dynamic link, the
The data of tripartite's function library can store in static library archive.The present embodiment can be applied to a variety of diagnostic device products,
Such as fault detection system for automobile, electric vehicle failure diagnosis apparatus etc..The diagnostic software run on diagnostic device includes that diagnosis is soft
Part dynamic base includes that may use to a variety of third party's function libraries in diagnostic software dynamic base.Third party's function library can be with
It is the abbreviation of Standard Template Library for STL, STL, Chinese name Standard Template Library is HP Lab's exploitation
A series of softwares general designation.
The present embodiment is defaulted when compiling diagnostic software, and the head text of third party's function library is compiled by way of dynamic link
Part, and be added to the header file as address mapping information in diagnostic function library.It should be noted that not all examines
All there are address mapping informations in disconnected function library, can be determined according to the attribute difference in diagnostic function library in compilation process
Whether need to be added to the header file of some third party's function library as address mapping information in diagnostic function library.Diagnostic function
Library is specially the system function library in android system.
It is understood that the third party's function library being previously mentioned in this step refers to the data for being not belonging to system dynamic base
Library.It is usually that dynamically load is carried out by way of JNI in diagnostic software, if the header file of third party's function library not made
It is added in diagnostic function library for address mapping information, then needing to find corresponding third party's function with address of cache by craft
The situation that library is loaded, used.But the present embodiment is first using the header file of third party's function library as address mapping information
It is added in diagnostic function library, the address of third party's function library can be found according to header file, realize dynamically load.Further
, since the data of third party's function library are stored in static library archive, mentioned for the automatic loading third-party function library of diagnostic software
It has supplied to support, has been not necessarily to manual loading.
You need to add is that when the corresponding diagnostic function library of diagnostic message does not include address mapping information, Ke Yijie
Line journey is loaded directly into diagnostic function library and carries out diagnostic operation.
S102: according to address mapping information loading third-party function library, diagnostic function library is loaded, is obtained to operational diagnostics
Library;
Wherein, this step is established in S101 it is determined that including address of cache letter to the corresponding diagnostic function library of diagnostic message
On the basis of breath, it can be addressed to find the position that third party's function library is stored according to address mapping information, load third
Diagnostic function library is reloaded after square function library and obtains diagnostics library to be run, to carry out diagnostic operation using diagnostic function library.Tool
Body, this step can according to address mapping information from static library archive loading third-party function library.
S103: running diagnostics library to be run, to treat diagnostic message execution information diagnostic operation.
Specifically, this step can run diagnostics library to be run by way of JNI, letter is executed to treat diagnostic message
Cease diagnostic operation.JNI is the abbreviation of Java Native Interface, it, which provides several API, realizes Java and other
The communication of language.
The present embodiment is by before loading diagnostic function library, first determining whether diagnostic function library includes address of cache letter
Breath reloads the strain of diagnostic function library according to address mapping information elder generation loading third-party function library if including address mapping information
Carry out information diagnosis operation.Since the address mapping information mentioned in the application is to compile third party by way of dynamic link
The header file of function library, the size of data of the header file are much smaller than the size of data in diagnostic function library, therefore with header file
Diagnostic function library only includes function size itself without the size comprising third party's function library, can be with further as header file
As the address information of third party's function library, third party's function can be determined according to header file when needing loading third-party function library
The address in energy library.Therefore, the present embodiment can reduce diagnostic software total file size, save Internet resources.
Fig. 2 is referred to below, and Fig. 2 is a kind of change Compilation Method of third party's function library provided by the embodiment of the present application
Flow chart;The present embodiment can combine to obtain more preferably embodiment, the tool of the present embodiment with the corresponding embodiment of Fig. 1
Body step may include:
S201: when receiving diagnostic software compiler directive, diagnostic function library is determined according to diagnostic software compiler directive;
S202: third party's function library corresponding with diagnostic function library is judged whether there is;If so, into S203;If it is not,
Then terminate process.
S203: the header file of third party's function library is compiled by way of dynamic link;
S204: being added to diagnostic function library using header file as address mapping information, and by the corresponding mark in diagnostic function library
Will position is 1.
Wherein, the meaning that flag bit set is 1 is convenient for judging to examine in the loading procedure of diagnostic function library in S204
It whether include address mapping information in disconnected function library.On the basis of the present embodiment, Fig. 1 is this about judging to diagnostic message pair
Whether the diagnostic function library answered includes the steps that address mapping information can be with specifically: judges the corresponding flag bit in diagnostic function library
It whether is 1;If so, determining that diagnostic function library includes address mapping information;If it is not, then determining that diagnostic function library does not include address
Map information.
Illustrate the detailed process of above-described embodiment description below with reference to the application scenarios of car fault diagnosis.
Diagnostic software compiling is carried out first, and diagnostic software is the software for car fault diagnosis, and the specific diagnosis is soft
Part can be run in car fault diagnosis instrument.When compiling diagnostic software, the included diagnostic function library of compiling diagnostic software
(that is, diagnostic function dynamic base), and the header file of the corresponding third party's function library in the diagnostic function library is passed through into Dynamic link library
Form is compiled to obtain address mapping information.Third party's function library can be by a variety of, for this sentences STL java standard library, address
Map information, that is, STL java standard library address mapping relation, can be according to the library address mapping information dynamically load STL.
After the header file of compiling diagnostic function library and STL java standard library, it is added to header file as address mapping information
Header file is added to by diagnostic function library since the size of data of header file is much smaller than diagnostic function library or STL java standard library
The rear diagnostic function library in diagnostic function library only includes itself function size and does not include the size of STL java standard library.By STL java standard library
As the need JNI library to be used of the display program on Android diagnostic device, the lib file of APP is put into (that is, static library
File) under, so that corresponding third party's function library can be used as the dynamic base load of application.Needing loading third-party function
When library only STL java standard library need to be loaded from static file folder according to address mapping information.STL will be loaded in diagnostic data base
The flag bit of java standard library is set as LDSTL, if using the header file of STL java standard library as address of cache when compiling inside diagnostic software
Information is added in diagnostic function library, then LDSTL=1 is arranged in the configuration file of the diagnostic software;Expression needs equipment
Show that program loads STL function library.
When compile diagnostic software complete after, can use diagnostic software carry out car fault diagnosis, diagnostic software into
Before row diagnostic operation, the LDSTL label in the configuration file of corresponding diagnostic software is first read, if there is the label and is worth
It is 1, then first loads STL function library, reload the diagnostic function library of corresponding diagnostic software, then starts diagnostic function library, to vapour
Vehicle is diagnosed, and in diagnosis, functional method in the library STL is can be used in diagnostic software.
Fig. 3 is referred to, Fig. 3 is a kind of structural schematic diagram of the system of information diagnosis provided by the embodiment of the present application;
The system may include:
Judgment module 301 is to the corresponding diagnostic function library of diagnostic message for judging when receiving when diagnostic message
No includes address mapping information;Wherein, address mapping information compiles third party's function library specifically by the form of dynamic link
Header file;
Loading module 302, for when the corresponding diagnostic function library of diagnostic message includes address mapping information, base area
Location map information loading third-party function library loads diagnostic function library, obtains diagnostics library to be run;
Diagnostic module 303, for running diagnostics library to be run, to treat diagnostic message execution information diagnostic operation.
The present embodiment is by before loading diagnostic function library, first determining whether diagnostic function library includes address of cache letter
Breath reloads the strain of diagnostic function library according to address mapping information elder generation loading third-party function library if including address mapping information
Carry out information diagnosis operation.Since the address mapping information mentioned in the application is to compile third party by way of dynamic link
The header file of function library, the size of data of the header file are much smaller than the size of data in diagnostic function library, therefore with header file
Diagnostic function library only includes function size itself without the size comprising third party's function library, can be with further as header file
As the address information of third party's function library, third party's function can be determined according to header file when needing loading third-party function library
The address in energy library.Therefore, the present embodiment can reduce diagnostic software total file size, save Internet resources.
Further, further includes:
Collector is examined according to diagnostic software compiler directive determination for receiving diagnostic software compiler directive
Disconnected function library;It is also used to judge whether there is third party's function library corresponding with the diagnostic function library;If so, passing through dynamic
The header file of form compiling third party's function library of link;It is added to using the header file as the address mapping information described
Diagnostic function library, and be 1 by the corresponding mark position in the diagnostic function library.
Further, the judgment module 301 is specially described when diagnostic message when receiving, and judges the diagnosis function
Can the corresponding flag bit in library whether the module for being 1;Wherein, when the flag bit is 1, then the diagnostic function library includes described
Address mapping information;When the flag bit is not 1, then the diagnostic function library does not include the address mapping information.
Further, diagnostic module 303 runs diagnostics library to be run specifically by the mode of JNI, to treat diagnosis
The module of information execution information diagnostic operation.
Since the embodiment of components of system as directed is corresponded to each other with the embodiment of method part, the embodiment of components of system as directed is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program
It is performed and step provided by above-described embodiment may be implemented.The storage medium may include: USB flash disk, mobile hard disk, read-only deposit
Reservoir (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or
The various media that can store program code such as CD.Computer program is stored on the storage medium, computer program is located
Reason device execute when perform the steps of when receiving when diagnostic message, judge be to the corresponding diagnostic function library of diagnostic message
No includes address mapping information;Wherein, address mapping information compiles third party's function library specifically by the form of dynamic link
Header file;If so, loading diagnostic function library according to address mapping information loading third-party function library, obtaining examining wait run
Disconnected library;Diagnostics library to be run is run, to treat diagnostic message execution information diagnostic operation.
The present embodiment is by before loading diagnostic function library, first determining whether diagnostic function library includes address of cache letter
Breath reloads the strain of diagnostic function library according to address mapping information elder generation loading third-party function library if including address mapping information
Carry out information diagnosis operation.Since the address mapping information mentioned in the application is to compile third party by way of dynamic link
The header file of function library, the size of data of the header file are much smaller than the size of data in diagnostic function library, therefore with header file
Diagnostic function library only includes function size itself without the size comprising third party's function library, can be with further as header file
As the address information of third party's function library, third party's function can be determined according to header file when needing loading third-party function library
The address in energy library.Therefore, the present embodiment can reduce diagnostic software total file size, save Internet resources.
It preferably, specifically can be with when the computer subprogram stored in computer readable storage medium is executed by processor
It performs the steps of and receives diagnostic software compiler directive;The diagnostic function library is determined according to the diagnostic software compiler directive;
Judge whether there is third party's function library corresponding with the diagnostic function library;If so, being compiled by way of dynamic link
The header file of third party's function library;It is added to the diagnostic function library using the header file as the address mapping information, and
1 is set by the corresponding flag bit in the diagnostic function library.
It preferably, specifically can be with when the computer subprogram stored in computer readable storage medium is executed by processor
It performs the steps of and judges whether the corresponding flag bit in the diagnostic function library is 1;If so, determining the diagnostic function library
Including the address mapping information;If it is not, then determining that the diagnostic function library does not include the address mapping information.
It preferably, specifically can be with when the computer subprogram stored in computer readable storage medium is executed by processor
It performs the steps of and runs the diagnostics library to be run by way of JNI, to be examined to diagnostic message execution information described
Disconnected operation.
Present invention also provides a kind of electronic equipment, and referring to fig. 4, Fig. 4 is that a kind of electronics provided by the embodiments of the present application is set
Standby structure chart, comprising:
Memory 100, for storing computer program;
Step provided by above-described embodiment may be implemented in processor 200 when for executing the computer program.
Specifically, memory 100 includes non-volatile memory medium, built-in storage.Non-volatile memory medium storage
There are operating system and computer-readable instruction, which is that the operating system and computer in non-volatile memory medium can
The operation of reading instruction provides environment.Processor 200 provides calculating and control ability for electronic equipment, executes and protects in memory 100
When the computer program deposited, following steps may be implemented: when receiving when diagnostic message, judging to examine to diagnostic message is corresponding
Whether disconnected function library includes address mapping information;Wherein, address mapping information specifically by dynamic link form compiling the
The header file of tripartite's function library;If so, loading diagnostic function library according to address mapping information loading third-party function library, obtaining
To diagnostics library to be run;Diagnostics library to be run is run, to treat diagnostic message execution information diagnostic operation.
The present embodiment is by before loading diagnostic function library, first determining whether diagnostic function library includes address of cache letter
Breath reloads the strain of diagnostic function library according to address mapping information elder generation loading third-party function library if including address mapping information
Carry out information diagnosis operation.Since the address mapping information mentioned in the application is to compile third party by way of dynamic link
The header file of function library, the size of data of the header file are much smaller than the size of data in diagnostic function library, therefore with header file
Diagnostic function library only includes function size itself without the size comprising third party's function library, can be with further as header file
As the address information of third party's function library, third party's function can be determined according to header file when needing loading third-party function library
The address in energy library.Therefore, the present embodiment can reduce diagnostic software total file size, save Internet resources.
Preferably, when processor 200 executes the computer subprogram saved in memory 100, following steps may be implemented:
Receive diagnostic software compiler directive;The diagnostic function library is determined according to the diagnostic software compiler directive;It judges whether there is
Third party's function library corresponding with the diagnostic function library;If so, compiling third party's function library by way of dynamic link
Header file;The diagnostic function library is added to using the header file as the address mapping information, and by the diagnosis function
The corresponding flag bit in energy library is set as 1.
Preferably, when processor 200 executes the computer subprogram saved in memory 100, following steps may be implemented:
Judge whether the corresponding flag bit in the diagnostic function library is 1;If so, determining that the diagnostic function library includes that the address is reflected
Penetrate information;If it is not, then determining that the diagnostic function library does not include the address mapping information.
Preferably, when processor 200 executes the computer subprogram saved in memory 100, following steps may be implemented:
The diagnostics library to be run is run by way of JNI, so as to described to diagnostic message execution information diagnostic operation.
It on the basis of the above embodiments, preferably, is provided by the embodiments of the present application referring to Fig. 5, Fig. 5
The structure chart of another electronic equipment, the electronic equipment further include:
Input interface 300 is connected with processor 200, for obtaining computer program, parameter and the instruction of external importing,
It saves through the control of processor 200 into memory 100.The input interface 300 can be connected with input unit, and it is manual to receive user
The parameter or instruction of input.The input unit can be the touch layer covered on display screen, be also possible to be arranged in terminal enclosure
Key, trace ball or Trackpad, be also possible to keyboard, Trackpad or mouse etc..
Display unit 400 is connected with processor 200, the data sent for video-stream processor 200.The display unit 400
It can be display screen, liquid crystal display or the electric ink display screen etc. in PC machine.
The network port 500 is connected with processor 200, for being communicatively coupled with external each terminal device.The communication link
The communication technology used by connecing can be cable communicating technology or wireless communication technique, and such as mobile high definition chained technology (MHL) leads to
It is blue with universal serial bus (USB), high-definition media interface (HDMI), adopting wireless fidelity technology (WiFi), Bluetooth Communication Technology, low-power consumption
The tooth communication technology, communication technology based on IEEE802.11s etc..
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also
Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application
It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.Under the situation not limited more, the element limited by sentence "including a ..." is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. a kind of method of information diagnosis characterized by comprising
When receiving when diagnostic message, whether the described judgement to the corresponding diagnostic function library of diagnostic message includes address of cache letter
Breath;Wherein, the address mapping information compiles the header file of third party's function library specifically by the form of dynamic link;
If so, loading third party's function library according to the address mapping information, load the diagnostic function library, obtain to
Operational diagnostics library;
Run the diagnostics library to be run, so as to described to diagnostic message execution information diagnostic operation.
2. method according to claim 1, which is characterized in that described in judgement to be to the corresponding diagnostic function library of diagnostic message
It is no include address mapping information before, further includes:
Receive diagnostic software compiler directive;
The diagnostic function library is determined according to the diagnostic software compiler directive;
Judge whether there is third party's function library corresponding with the diagnostic function library;
If so, compiling the header file of third party's function library by way of dynamic link;
The diagnostic function library is added to using the header file as the address mapping information, and by the diagnostic function library pair
The flag bit answered is set as 1.
3. according to the method described in claim 2, it is characterized in that, to the corresponding diagnostic function of diagnostic message described in the judgement
Whether library includes address mapping information, is specifically included:
Judge whether the corresponding flag bit in the diagnostic function library is 1;If so, determining that the diagnostic function library includes describedly
Location map information;If it is not, then determining that the diagnostic function library does not include the address mapping information.
4. method according to claim 1, which is characterized in that run the diagnostics library to be run so as to the letter to be diagnosed
Execution information diagnostic operation is ceased, is specifically included:
The diagnostics library to be run is run by way of JNI, so as to described to diagnostic message execution information diagnostic operation.
5. a kind of system of information diagnosis characterized by comprising
Judgment module, for when receiving when diagnostic message, judgement it is described to the corresponding diagnostic function library of diagnostic message whether
Including address mapping information;Wherein, the address mapping information compiles third party's function specifically by the form of dynamic link
The header file in library;
Loading module, for when described when the corresponding diagnostic function library of diagnostic message includes the address mapping information, according to
The address mapping information loads third party's function library, loads the diagnostic function library, obtains diagnostics library to be run;
Diagnostic module, for running the diagnostics library to be run, so as to described to diagnostic message execution information diagnostic operation.
6. system according to claim 5, which is characterized in that the system also includes:
Collector determines the diagnosis function according to the diagnostic software compiler directive for receiving diagnostic software compiler directive
It can library;It is also used to judge whether there is third party's function library corresponding with the diagnostic function library;If so, passing through dynamic link
Form compiling third party's function library header file;The diagnosis is added to using the header file as the address mapping information
Function library, and be 1 by the corresponding mark position in the diagnostic function library.
7. system according to claim 6, which is characterized in that the judgment module is specially to work as to receive the letter to be diagnosed
When breath, judge the corresponding flag bit in the diagnostic function library whether the module for being 1;Wherein, when the flag bit is 1, then institute
Stating diagnostic function library includes the address mapping information;When the flag bit is not 1, then the diagnostic function library does not include institute
State address mapping information.
8. system according to claim 5, which is characterized in that the diagnostic module runs institute specifically by the mode of JNI
Diagnostics library to be run is stated, so as to the module to diagnostic message execution information diagnostic operation.
9. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the method for the information diagnosis as described in any one of Claims 1-4 when for executing the computer program
The step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, realizing the method for information diagnosis as described in any one of Claims 1-4 when the computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811269748.6A CN109446087A (en) | 2018-10-29 | 2018-10-29 | A kind of method of information diagnosis, system and associated component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811269748.6A CN109446087A (en) | 2018-10-29 | 2018-10-29 | A kind of method of information diagnosis, system and associated component |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109446087A true CN109446087A (en) | 2019-03-08 |
Family
ID=65549754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811269748.6A Pending CN109446087A (en) | 2018-10-29 | 2018-10-29 | A kind of method of information diagnosis, system and associated component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109446087A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111008106A (en) * | 2019-11-29 | 2020-04-14 | 苏州浪潮智能科技有限公司 | Server monitoring management method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019744A (en) * | 2012-12-31 | 2013-04-03 | 清华大学 | Computing middleware-based radar signal processing module library construction method and application thereof |
CN106708012A (en) * | 2016-12-05 | 2017-05-24 | 深圳市元征科技股份有限公司 | Secondary development method and device for diagnostic device |
CN107193748A (en) * | 2017-06-01 | 2017-09-22 | 网易(杭州)网络有限公司 | Program file performs method, device, storage medium and processor |
-
2018
- 2018-10-29 CN CN201811269748.6A patent/CN109446087A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019744A (en) * | 2012-12-31 | 2013-04-03 | 清华大学 | Computing middleware-based radar signal processing module library construction method and application thereof |
CN106708012A (en) * | 2016-12-05 | 2017-05-24 | 深圳市元征科技股份有限公司 | Secondary development method and device for diagnostic device |
CN107193748A (en) * | 2017-06-01 | 2017-09-22 | 网易(杭州)网络有限公司 | Program file performs method, device, storage medium and processor |
Non-Patent Citations (1)
Title |
---|
CLOVER_TOEIC: "C语言头文件组织与包含原则,https://www.cnblogs.com/clover-toeic/p/3728026.html", 《博客园》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111008106A (en) * | 2019-11-29 | 2020-04-14 | 苏州浪潮智能科技有限公司 | Server monitoring management method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109325195B (en) | Rendering method and system for browser, computer device and computer storage medium | |
CN107506300B (en) | User interface testing method, device, server and storage medium | |
US8887141B2 (en) | Automatically modifying a native code module accessed from virtual machine bytecode to determine execution information | |
US8239505B2 (en) | Progressively implementing declarative models in distributed systems | |
US20100313182A1 (en) | Extensible user interface generation | |
US20110225566A1 (en) | Testing user interfaces in multiple execution environments | |
CN109101228B (en) | Application program execution method and device | |
CN108363528A (en) | Startup method, apparatus, storage medium and the electronic equipment of five application page | |
US7617490B2 (en) | Methods and apparatus for dynamic best fit compilation of mixed mode instructions | |
CN110196809B (en) | Interface testing method and device | |
US20130205280A1 (en) | Debugging code visually on a canvas | |
CN109446087A (en) | A kind of method of information diagnosis, system and associated component | |
CN114048415A (en) | Form generation method and device, electronic equipment and computer readable storage medium | |
CN108334443A (en) | Generate method, apparatus, equipment and the computer readable storage medium of test case | |
US8250589B2 (en) | Method for simplifying interfaces having dynamic libraries | |
CN103631704B (en) | The automatization test system and method for communication equipment | |
CN115562989A (en) | Automatic test sequence conversion method, system, equipment and medium | |
CN112817922B (en) | Log dynamic printing method and device, computer equipment and storage medium | |
CN111026463B (en) | Page loading method, device, equipment and storage medium | |
US20120174078A1 (en) | Smart cache for a server test environment in an application development tool | |
CN113220386A (en) | Instrument board publishing method and related equipment | |
CN113760317A (en) | Page display method, device, equipment and storage medium | |
CN112148450A (en) | Data processing method, device, equipment and storage medium | |
CN113377678B (en) | Test environment switching method and device, electronic equipment and storage medium | |
JP2015138356A (en) | Software structure visualization device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |