CN108763057A - A kind of thread detection method, device, equipment and computer readable storage medium - Google Patents
A kind of thread detection method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN108763057A CN108763057A CN201810361925.7A CN201810361925A CN108763057A CN 108763057 A CN108763057 A CN 108763057A CN 201810361925 A CN201810361925 A CN 201810361925A CN 108763057 A CN108763057 A CN 108763057A
- Authority
- CN
- China
- Prior art keywords
- thread
- sub
- detected
- engineering
- detection
- 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/362—Software debugging
- G06F11/366—Software debugging using diagnostics
-
- 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/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
Abstract
Invention describes a kind of thread detection method, device, equipment and computer readable storage medium, this method to include:Sub- engineering obtains detected rule;The sub- engineering finds the logical method to be detected in RxJava according to the detected rule, and obtains the thread parameter type in the logical method to be detected;In the case that the standard thread parameter type in thread parameter type and the detected rule in the logical method to be detected is inconsistent, the sub- engineering sends the warning message for pointing out thread exception.The present invention can be detected thread before compiling, carry out error prompting to developer in time, avoid leading to the problem of thread mistake.
Description
Technical field
The present invention relates to thread detection technique field more particularly to a kind of thread detection method, device, equipment and computers
Readable storage medium storing program for executing.
Background technology
RxJava is a kind of popular technology in Android Android development processes, and RxJava is Rx (Reactive
Extensions, response type are expanded) it is directed to an asynchronous response type extension programming library of Java language.RxJava can be big
Big to improve development efficiency, Optimized code structure switches convenient for thread.Therefore many application APPs be all by RxJava into
Row exploitation.In use, along with RxJava the advantages of, some problems also exposed day by day.Due to the thread of RxJava
Handover operation is extremely convenient, therefore developer is easy to lead to the problem of thread mistake in use.For example, in RxJava
In ObserveOn () method determine the execution thread of Subscriber, SubscribeOn () method in RxJava
Determine the execution thread of Observable.However, developer is easy to the two to mix up, or because carelessness causes thread to be arranged
Mistake makes code operate in the thread of mistake, the problems such as to generate collapse.Due to being caught to mistake inside RxJava
It obtains, developer is difficult to be directly targeted to mistake, causes that cost of correcting mistakes is huge, the extremely low situation of make-wrong cost.
Invention content
It is a primary object of the present invention to propose a kind of thread detection method, device, equipment and computer-readable storage medium
Matter can be detected thread before compiling, carry out error prompting to developer in time, avoid generating asking for thread mistake
Topic.
To achieve the above object, the present invention provides a kind of thread detection method, the method includes:
Sub- engineering obtains detected rule;
The sub- engineering finds the logic to be detected in response type extension programming library RxJava according to the detected rule
Method, and obtain the thread parameter type in the logical method to be detected;
Thread parameter type in the logical method to be detected and the standard thread parameter class in the detected rule
In the case that type is inconsistent, the sub- engineering sends the warning message for pointing out thread exception.
Optionally, the sub- engineering obtains detected rule, including:
The sub- engineering obtains detection binary system and files AAR files;
The sub- engineering parses detection JAVA archive file JAR packets from the detection AAR files;
The sub- engineering compiles out the detected rule from the detection JAR packets.
Optionally, the sub- engineering obtains detection AAR files, including:
The sub- engineering receives the detection AAR files sent by preset interface by main works.
Optionally, when the logical method to be detected is SubscribeOn () method and/or ObserveOn () method
When, the sub- engineering finds the logical method to be detected in RxJava according to the detected rule, and obtains described to be detected
Thread parameter type in logical method, including:
The sub- engineering searches the Subscribe () method called in RxJava;
The sub- engineering searches the SubscribeOn called in RxJava based on the Subscribe () method found
() method and/or ObserveOn () method;
Thread parameter type in sub- engineering detecting the SubscribeOn () method and/or ObserveOn () method.
Optionally, when the logical method to be detected is SubscribeOn () method and/or ObserveOn () method
When, the standard thread parameter type in the thread parameter type in the logical method to be detected and the detected rule
In the case of inconsistent, the sub- engineering sends the warning message for pointing out thread exception, including:
Thread parameter in SubscribeOn () method is in main thread parameter or ObserveOn () method
In the case that thread parameter is sub-line journey parameter, the sub- engineering sends the warning message for pointing out thread exception.
In addition, to achieve the above object, the present invention also proposes a kind of thread detection device, it is applied in sub- engineering, it is described
Device includes:
Acquisition module, for obtaining detected rule;
Detection module for finding the logical method to be detected in RxJava according to the detected rule, and obtains institute
State the thread parameter type in logical method to be detected;
Alert module, for the thread parameter type in the logical method to be detected and the mark in the detected rule
In the case that directrix journey parameter type is inconsistent, the sub- engineering sends the warning message for pointing out thread exception.
Optionally, when the logical method to be detected is SubscribeOn () method and/or ObserveOn () method
When, the detection module is specifically used for:
Search the Subscribe () method called in RxJava;Based on the Subscribe () method found, search
The SubscribeOn () method and/or ObserveOn () method called in RxJava;The SubscribeOn () method of detection
And/or the thread parameter type in ObserveOn () method.
Optionally, when the logical method to be detected is SubscribeOn () method and/or ObserveOn () method
When, the alert module is specifically used for:
Thread parameter in SubscribeOn () method is in main thread parameter or ObserveOn () method
In the case that thread parameter is sub-line journey parameter, the sub- engineering sends the warning message for pointing out thread exception.
In addition, to achieve the above object, the present invention also proposes that a kind of thread detection device, the equipment include:Processor,
Memory and communication bus;
The communication bus is for realizing the connection communication between the processor and the memory;
The processor is used to execute the thread detection program stored in the memory, to realize the thread of above-mentioned introduction
The step of detection method.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable
Storage medium is stored with thread detection program;
When thread detection program is executed by least one processor, at least one processor is caused to execute
The step of giving an account of the thread detection method to continue.
Thread detection method, device, equipment and computer readable storage medium proposed by the present invention, according to the line of RxJava
Journey processing feature, setting detection logic, to effectively detect the mistake in thread.In the present invention, the detection logical AND of thread
Service logic is kept completely separate, and can directly detect any engineering.
Description of the drawings
Fig. 1 is the flow chart of the thread detection method of first embodiment of the invention;
Fig. 2 is the calling schematic diagram of the RxJava of first embodiment of the invention;
Fig. 3 be first embodiment of the invention by Lint carry out thread detection when, the class of return method information is shown
It is intended to;
Fig. 4 is the flow chart of the thread detection method of second embodiment of the invention;
Fig. 5 is the flow chart of the thread detection method of third embodiment of the invention;
Fig. 6 is the composed structure schematic diagram of the thread detection device of fourth embodiment of the invention;
Fig. 7 is the composed structure schematic diagram of the thread detection device of fifth embodiment of the invention.
Specific implementation mode
Further to illustrate the present invention to reach the technological means and effect that predetermined purpose is taken, below in conjunction with attached drawing
And preferred embodiment, the present invention is described in detail as after.
First embodiment of the invention, it is proposed that a kind of thread detection method, as shown in Figure 1, the method specifically include with
Lower step:
Step S101:Sub- engineering obtains detected rule.
Wherein, detected rule is the pre-set rule for thread detection.
Specifically, the detected rule is generated according to Lint tools.
The problem of in order to effectively detect thread-safe, it is necessary first to which a effective thread detection instrument is swept to carry out thread
It retouches.The thread detection instrument used in embodiments of the present invention is Lint, because Lint is directly built in Android Studio
In, there are many powerful primary detection logics, and customized detection logic may be implemented.
Step S102:The sub- engineering finds the logical method to be detected in RxJava according to the detected rule, and
Obtain the thread parameter type in the logical method to be detected.
Specifically, when the logical method to be detected is SubscribeOn () method and/or ObserveOn () method
When, step S102, including:
Step A1:The sub- engineering searches the Subscribe () method called in RxJava by Lint tools.
Step A2:The sub- engineering is searched by Lint tools in RxJava based on the Subscribe () method found
SubscribeOn () method and/or ObserveOn () method of middle calling.
Step A3:The sub- engineering detects SubscribeOn () method and/or the sides ObserveOn () by Lint tools
Thread parameter type in method.
Further, in embodiments of the present invention, by examining the thread process feature of RxJava itself and Lint threads
The characteristics of surveying interface is combined, and writes the detected rule for detecting thread mistake.
It is that chain type is called that RxJava, which is used, as shown in Fig. 2, for the calling schematic diagram of RxJava.Wherein, in fact it could happen that ask
Topic is SubscribeOn () method and ObserveOn () method.If the two methods to be designated as to the thread of mistake,
It can cause thread Problem-Error.However, it usually needs Subscriber is set as executing in main thread, by Observable
It being set as executing in sub-line journey, that is to say, that the parameter in SubscribeOn () method should be sub-line journey parameter,
Parameter in ObserveOn () method method should be main thread parameter.
When carrying out thread detection by Lint, the class MethodInvocation of a method information can be returned to, such as Fig. 3 institutes
Show.In such, it can be seen that the attribute and the previous method of current method and the category of latter approach of current method
Property.Therefore, Lint tools are just suitable for the chain type calling of RxJava.RxJava calling can be first found using Lint tools
In the Subscribe () method that must have find during RxJava calls further according to Subscribe () method
SubscribeOn () method and ObserveOn () method.To detect the parameter in SubscribeOn () method whether be
Whether the parameter in sub-line journey parameter and ObserveOn () method is main thread parameter.
Step S103:Thread parameter type in the logical method to be detected and the normal line in the detected rule
In the case that journey parameter type is inconsistent, the sub- engineering sends the warning message for pointing out thread exception.
Specifically, when the logical method to be detected is SubscribeOn () method and/or ObserveOn () method
When, step S103, including:
Thread parameter in SubscribeOn () method is in main thread parameter or ObserveOn () method
In the case that thread parameter is sub-line journey parameter, the sub- engineering sends the warning message for pointing out thread exception.
If the thread parameter in SubscribeOn () method is not sub-line journey parameter or ObserveOn () method
In thread parameter be not main thread parameter, then warning message for pointing out thread exception is sent, to notify developer to pay attention to
There may be problems for this section of code.
Second embodiment of the invention, it is proposed that a kind of thread detection method, as shown in figure 4, the method specifically include with
Lower step:
Step S401:Sub- engineering obtains detection AAR files from specified folder.
Step S402:The sub- engineering parses detection JAR packets from the detection AAR files.
Step S403:The sub- engineering compiles out detected rule from the detection JAR packets.
In order to allow engineering to be easy to rely on, the mode for introducing Lint tools has very much, and common incorporation way is:By basis
The detection JAR packets that Lint tools generate are positioned in specified folder.But this mode can lead to all engineerings of the machine all
The detected rule in detection JAR packets can be executed.In embodiments of the present invention, in order to avoid all engineerings of the machine are all into line
Journey detects, and detected rule is first formed detection JAR packets, then detection JAR packets are formed detection AAR files, and will detect AAR files
It is positioned in specified folder, so that engineering introduces.Therefore, only introducing the engineering of detection AAR files can just be advised by detecting
Thread detection is then carried out, the engineering without introducing detection AAR files will not carry out thread detection.
Step S404:The sub- engineering detects the SubscribeOn () called in RxJava by the detected rule
The type of method and the thread parameter in ObserveOn () method.
Specifically, in embodiments of the present invention, by the way that the thread process feature of RxJava itself and Lint threads are examined
The characteristics of surveying interface is combined, and writes the detected rule for detecting thread mistake.
It is that chain type is called that RxJava, which is used, as shown in Fig. 2, for the calling schematic diagram of RxJava.Wherein, in fact it could happen that ask
Topic is SubscribeOn () method and ObserveOn () method.If the two methods to be designated as to the thread of mistake,
It can cause thread Problem-Error.However, it usually needs Subscriber is set as executing in main thread, by Observable
It being set as executing in sub-line journey, that is to say, that the parameter in SubscribeOn () method should be sub-line journey parameter,
Parameter in ObserveOn () method method should be main thread parameter.
When carrying out thread detection by Lint, the class MethodInvocation of a method information can be returned to, such as Fig. 3 institutes
Show.In such, it can be seen that the attribute and the previous method of current method and the category of latter approach of current method
Property.Therefore, Lint tools are just suitable for the chain type calling of RxJava.RxJava calling can be first found using Lint tools
In the Subscribe () method that must have find during RxJava calls further according to Subscribe () method
SubscribeOn () method and ObserveOn () method.To detect the parameter in SubscribeOn () method whether be
Whether the parameter in sub-line journey parameter and ObserveOn () method is main thread parameter.
Further, step S404, including:
Step A1:The sub- engineering searches the Subscribe () method called in RxJava by Lint tools;
Step A2:The sub- engineering is searched by Lint tools in RxJava based on the Subscribe () method found
SubscribeOn () method and ObserveOn () method of middle calling, and SubscribeOn () method is detected by Lint
With the type of the thread parameter in ObserveOn () method.
Step S405:Thread parameter in SubscribeOn () method is main thread parameter or ObserveOn ()
In the case that thread parameter in method is sub-line journey parameter, the sub- engineering sends warning message.
If the parameter in SubscribeOn () method is not in sub-line journey parameter or ObserveOn () method
Parameter is not main thread parameter, then sends a warning message, to notify developer to pay attention to this section of code that there may be problems.
Third embodiment of the invention, it is proposed that a kind of thread detection method, as shown in figure 5, the method specifically include with
Lower step:
Step S501:Sub- engineering receives the detection AAR files sent by Subprojects interfaces by main works.
Specifically, for simple main works, detection AAR files can be introduced into one by one and need to carry out thread detection
In sub- engineering.But if main works are there are more sub- engineering, the cost for introducing detection AAR files one by one is very high.For simplification
It introduces, is not that will detect AAR files to be introduced directly into sub- engineering, but detection AAR files are drawn in embodiments of the present invention
Enter into main works.Main works are similar to a packaging, all sub- engineerings are enclose, so main works can be to all sub- engineerings
Execute some batch operations.
In the build.gradle of main works, by Subprojects interfaces, batch introducing is carried out to every sub- engineering
Detect AAR files.The operation defined inside Subprojects interfaces can execute all sub- engineerings.Thus detection AAR
File has entered in every sub- engineering.
Step S502:The sub- engineering parses detection JAR packets from the detection AAR files, and from the detection JAR
Detected rule is compiled out in packet.
Specifically, sub- requirement of engineering by compile methods compile detection AAR files in detected rule, but due to
Compile methods are not supported in the build.gradle of main works, so also needing to be introduced separately into java plug-in offer dependence.
In embodiments of the present invention, in order to avoid all sub- engineerings all carry out thread detection, first detected rule is formed and is examined
JAR packets are surveyed, then detection JAR packets are formed into detection AAR files.Detection can just be passed through by only introducing the sub- engineering of detection AAR files
Rule carries out thread detection, and the sub- engineering without introducing detection AAR files will not carry out thread detection.
Step S503:The sub- engineering detects the SubscribeOn () called in RxJava by the detected rule
The type of method and the thread parameter in ObserveOn () method.
Specifically, in embodiments of the present invention, by the way that the thread process feature of RxJava itself and Lint threads are examined
The characteristics of surveying interface is combined, and writes the detected rule for detecting thread mistake.
It is that chain type is called that RxJava, which is used, as shown in Fig. 2, for the calling schematic diagram of RxJava.Wherein, in fact it could happen that ask
Topic is SubscribeOn () method and ObserveOn () method.If the two methods to be designated as to the thread of mistake,
It can cause thread Problem-Error.However, it usually needs Subscriber is set as executing in main thread, by Observable
It being set as executing in sub-line journey, that is to say, that the parameter in SubscribeOn () method should be sub-line journey parameter,
Parameter in ObserveOn () method method should be main thread parameter.
When carrying out thread detection by Lint, the class MethodInvocation of a method information can be returned to, such as Fig. 3 institutes
Show.In such, it can be seen that the attribute and the previous method of current method and the category of latter approach of current method
Property.Therefore, Lint tools are just suitable for the chain type calling of RxJava.RxJava calling can be first found using Lint tools
In the Subscribe () method that must have find during RxJava calls further according to Subscribe () method
SubscribeOn () method and ObserveOn () method.To detect the parameter in SubscribeOn () method whether be
Whether the parameter in sub-line journey parameter and ObserveOn () method is main thread parameter.
Further, step S503, including:
Step A1:The sub- engineering searches the Subscribe () method called in RxJava by Lint tools;
Step A2:The sub- engineering is searched by Lint tools in RxJava based on the Subscribe () method found
SubscribeOn () method and ObserveOn () method of middle calling, and SubscribeOn () method is detected by Lint
With the type of the thread parameter in ObserveOn () method.
Step S504:Thread parameter in SubscribeOn () method is main thread parameter or ObserveOn ()
In the case that thread parameter in method is sub-line journey parameter, the sub- engineering sends warning message.
If the thread parameter in SubscribeOn () method is not sub-line journey parameter or ObserveOn () method
In thread parameter be not main thread parameter, then send a warning message, to notify developer to pay attention to this section of code that there may be ask
Topic.
Fourth embodiment of the invention, it is proposed that a kind of thread detection device is applied in sub- engineering, as shown in fig. 6, described
Device specifically includes consisting of part:
Acquisition module 601, for obtaining detected rule;
Detection module 602 for finding the logical method to be detected in RxJava according to the detected rule, and obtains
Thread parameter type in the logical method to be detected.
Alert module 603, in the thread parameter type and the detected rule in the logical method to be detected
Standard thread parameter type it is inconsistent in the case of, the sub- engineering sends the warning message for pointing out thread exception.
Specifically, acquisition module 601, is used for:
Obtain detection AAR files;Detection JAR packets are parsed from the detection AAR files;From the detection JAR packets
Compile out the detected rule.
Preferably, sub- engineering receives the detection AAR files sent by preset interface by main works.
Further, the detected rule is generated according to Lint tools.
Further, when the logical method to be detected is SubscribeOn () method and/or ObserveOn () method
When, detection module 602 is specifically used for:
The sub- engineering searches the Subscribe () method called in RxJava by Lint tools;The sub- engineering
Based on the Subscribe () method found, the sides the SubscribeOn () called in RxJava are searched by Lint tools
Method and/or ObserveOn () method;The sub- engineering by Lint tools detect SubscribeOn () method and/or
Thread parameter type in ObserveOn () method.
Further, the logical method to be detected is SubscribeOn () method and/or ObserveOn () method
When, alert module 603 is specifically used for:
Thread parameter in SubscribeOn () method is in main thread parameter or ObserveOn () method
In the case that thread parameter is sub-line journey parameter, the sub- engineering sends the warning message for pointing out thread exception.
Fifth embodiment of the invention, it is proposed that a kind of thread detection device is applied in subprogram, as shown in fig. 7, described
Equipment includes:Processor 701, memory 702 and communication bus;
Communication bus is for realizing the connection communication between processor 701 and memory 702;
Processor 701 is used to execute the thread detection program stored in memory 702, to realize following steps:
Sub- engineering obtains detected rule;
The sub- engineering finds the logical method to be detected in RxJava according to the detected rule, and is waited for described in acquisition
Detect the thread parameter type in logical method;
Thread parameter type in the logical method to be detected and the standard thread parameter class in the detected rule
In the case that type is inconsistent, the sub- engineering sends the warning message for pointing out thread exception.
The sixth embodiment of the present invention, it is proposed that a kind of computer readable storage medium is applied in subprogram, the meter
Calculation machine readable storage medium storing program for executing is stored with thread detection program;
When thread detection program is executed by least one processor, cause at least one processor execution with
Lower step operation:
Sub- engineering obtains detected rule;
The sub- engineering finds the logical method to be detected in RxJava according to the detected rule, and is waited for described in acquisition
Detect the thread parameter type in logical method;
Thread parameter type in the logical method to be detected and the standard thread parameter class in the detected rule
In the case that type is inconsistent, the sub- engineering sends the warning message for pointing out thread exception.
Thread detection method, device, equipment and the computer readable storage medium introduced in the embodiment of the present invention, by existing
Some Lint threads detection instruments, are detected thread.And according to the thread process feature of RxJava, setting detects logic,
To effectively detect the mistake in thread.In the present invention, the detection logical AND service logic of thread is kept completely separate, and can directly be examined
Survey any engineering.
By the explanation of specific implementation mode, should can to the present invention for reach technological means that predetermined purpose is taken and
Effect is able to more go deep into and specifically understand, however appended diagram is only to provide reference and description and is used, and is not used for originally
Invention limits.
Claims (10)
1. a kind of thread detection method, which is characterized in that the method includes:
Sub- engineering obtains detected rule;
The sub- engineering finds the logical method to be detected in response type extension programming library RxJava according to the detected rule,
And obtain the thread parameter type in the logical method to be detected;
The standard thread parameter type in thread parameter type and the detected rule in the logical method to be detected is not
Under unanimous circumstances, the sub- engineering sends the warning message for pointing out thread exception.
2. thread detection method according to claim 1, which is characterized in that the sub- engineering obtains detected rule, including:
The sub- engineering obtains detection binary system and files AAR files;
The sub- engineering parses detection Java archive file JAR packets from the detection AAR files;
The sub- engineering compiles out the detected rule from the detection JAR packets.
3. thread detection method according to claim 2, which is characterized in that the sub- engineering obtains detection AAR files, packet
It includes:
The sub- engineering receives the detection AAR files sent by preset interface by main works.
4. thread detection method according to claim 1, which is characterized in that when the logical method to be detected is
When SubscribeOn () method and/or ObserveOn () method, the sub- engineering is found according to the detected rule
Logical method to be detected in RxJava, and the thread parameter type in the logical method to be detected is obtained, including:
The sub- engineering searches the Subscribe () method called in RxJava;
The sub- engineering searches the SubscribeOn () called in RxJava based on the Subscribe () method found
Method and/or ObserveOn () method;
Thread parameter type in sub- engineering detecting the SubscribeOn () method and/or ObserveOn () method.
5. thread detection method according to claim 4, which is characterized in that when the logical method to be detected is
When SubscribeOn () method and/or ObserveOn () method, the thread parameter in the logical method to be detected
In the case that standard thread parameter type in type and the detected rule is inconsistent, the sub- engineering is sent for pointing out line
The warning message of Cheng Yichang, including:
Thread parameter in SubscribeOn () method is the thread in main thread parameter or ObserveOn () method
In the case that parameter is sub-line journey parameter, the sub- engineering sends the warning message for pointing out thread exception.
6. a kind of thread detection device, which is characterized in that be applied in sub- engineering, described device includes:
Acquisition module, for obtaining detected rule;
Detection module for finding the logical method to be detected in RxJava according to the detected rule, and waits for described in acquisition
Detect the thread parameter type in logical method;
Alert module, for the thread parameter type in the logical method to be detected and the normal line in the detected rule
In the case that journey parameter type is inconsistent, the sub- engineering sends the warning message for pointing out thread exception.
7. thread detection device according to claim 6, which is characterized in that when the logical method to be detected is
When SubscribeOn () method and/or ObserveOn () method, the detection module is specifically used for:
Search the Subscribe () method called in RxJava;Based on the Subscribe () method found, search
The SubscribeOn () method and/or ObserveOn () method called in RxJava;The SubscribeOn () method of detection
And/or the thread parameter type in ObserveOn () method.
8. thread detection device according to claim 7, which is characterized in that when the logical method to be detected is
When SubscribeOn () method and/or ObserveOn () method, the alert module is specifically used for:
Thread parameter in SubscribeOn () method is the thread in main thread parameter or ObserveOn () method
In the case that parameter is sub-line journey parameter, the sub- engineering sends the warning message for pointing out thread exception.
9. a kind of thread detection device, which is characterized in that the equipment includes:Processor, memory and communication bus;
The communication bus is for realizing the connection communication between the processor and the memory;
The processor is used to execute the thread detection program stored in the memory, any in claim 1 to 5 to realize
Described in thread detection method the step of.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has thread detection
Program;
When thread detection program is executed by least one processor, at least one processor perform claim is caused to be wanted
The step of seeking the thread detection method described in any one of 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810361925.7A CN108763057A (en) | 2018-04-20 | 2018-04-20 | A kind of thread detection method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810361925.7A CN108763057A (en) | 2018-04-20 | 2018-04-20 | A kind of thread detection method, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108763057A true CN108763057A (en) | 2018-11-06 |
Family
ID=64011214
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810361925.7A Pending CN108763057A (en) | 2018-04-20 | 2018-04-20 | A kind of thread detection method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108763057A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111966577A (en) * | 2020-07-06 | 2020-11-20 | 北京奇艺世纪科技有限公司 | Program stability detection method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6149318A (en) * | 1997-04-15 | 2000-11-21 | Samuel C. Kendall | Link-time and run-time error detection, and program instrumentation |
CN105119783A (en) * | 2015-09-30 | 2015-12-02 | 北京奇艺世纪科技有限公司 | Network request data detection method and device |
CN105320591A (en) * | 2014-07-25 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Code detection method and device |
CN106339313A (en) * | 2016-08-12 | 2017-01-18 | 南京航空航天大学 | Method for automatically detecting inconsistency of Java API program exception and document description |
CN107451046A (en) * | 2016-05-30 | 2017-12-08 | 腾讯科技(深圳)有限公司 | A kind of method and terminal for detecting thread |
-
2018
- 2018-04-20 CN CN201810361925.7A patent/CN108763057A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6149318A (en) * | 1997-04-15 | 2000-11-21 | Samuel C. Kendall | Link-time and run-time error detection, and program instrumentation |
CN105320591A (en) * | 2014-07-25 | 2016-02-10 | 腾讯科技(深圳)有限公司 | Code detection method and device |
CN105119783A (en) * | 2015-09-30 | 2015-12-02 | 北京奇艺世纪科技有限公司 | Network request data detection method and device |
CN107451046A (en) * | 2016-05-30 | 2017-12-08 | 腾讯科技(深圳)有限公司 | A kind of method and terminal for detecting thread |
CN106339313A (en) * | 2016-08-12 | 2017-01-18 | 南京航空航天大学 | Method for automatically detecting inconsistency of Java API program exception and document description |
Non-Patent Citations (1)
Title |
---|
韩迪,李建庆: "《Android实例详解 项目实训开发》", 31 August 2016 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111966577A (en) * | 2020-07-06 | 2020-11-20 | 北京奇艺世纪科技有限公司 | Program stability detection method and device |
CN111966577B (en) * | 2020-07-06 | 2023-09-08 | 北京奇艺世纪科技有限公司 | Program stability detection method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170132119A1 (en) | Method and device for retrieving test case based on code coverage | |
CN107704382B (en) | Python-oriented function call path generation method and system | |
CN111158741B (en) | Method and device for monitoring dependency relationship change of service module on third party class library | |
CN111124479B (en) | Method and system for analyzing configuration file and electronic equipment | |
CN108874649B (en) | Method and device for generating automatic test script and computer equipment thereof | |
US20140096117A1 (en) | Data dependence analysis support device, data dependence analysis support program, and data dependence analysis support method | |
US7287246B2 (en) | Debugging optimized flows with breakpoints using stored breakpoint trigger indicators | |
CN111737697A (en) | Safety scanning system and scanning method based on atomization function | |
JP2010140408A (en) | Source code converting device | |
CN108763057A (en) | A kind of thread detection method, device, equipment and computer readable storage medium | |
US7225429B2 (en) | Breakpoint groups based on control flow | |
CN111596970B (en) | Method, device, equipment and storage medium for dynamic library delay loading | |
US8762953B2 (en) | Exception-based error handling in an array-based language | |
CN108874662A (en) | The non-transitory computer-readable medium of test method and storage program | |
CN115357513B (en) | Program ambiguity test method, device, equipment and storage medium | |
JP2010140407A (en) | Source code inspection device | |
CN110716866A (en) | Code quality scanning method and device, computer equipment and storage medium | |
CN103902445A (en) | Regression test object determination method and device | |
CN112765041B (en) | Game automation testing method and device and electronic equipment | |
US9959101B2 (en) | Conditional sequential selection of external reference solutions | |
CN114138669A (en) | Software automatic testing method based on function level selection symbolized mixed execution | |
CN112181841A (en) | Detected anomaly detection method, device, equipment and storage medium | |
KR102185294B1 (en) | Apparatus and method for analyzing source code of concurrent program and computer readible storage medium therefor | |
US10762211B2 (en) | Source code diagnostic instrument | |
KR20180039830A (en) | Apparatus and method for detecting code reuse attack |
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: 20181106 |