CN106844169A - Information processing method and system - Google Patents

Information processing method and system Download PDF

Info

Publication number
CN106844169A
CN106844169A CN201510884433.2A CN201510884433A CN106844169A CN 106844169 A CN106844169 A CN 106844169A CN 201510884433 A CN201510884433 A CN 201510884433A CN 106844169 A CN106844169 A CN 106844169A
Authority
CN
China
Prior art keywords
output
information
file
conduit
corresponding
Prior art date
Application number
CN201510884433.2A
Other languages
Chinese (zh)
Inventor
黄智�
Original Assignee
大唐移动通信设备有限公司
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 大唐移动通信设备有限公司 filed Critical 大唐移动通信设备有限公司
Priority to CN201510884433.2A priority Critical patent/CN106844169A/en
Publication of CN106844169A publication Critical patent/CN106844169A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment

Abstract

The invention provides an information processing method and system. The method comprises the steps of determining a to-be-tracked business; marking a stub function matched with the determined to-be-tracked business, wherein one determined matching stub function corresponds to only one stub mark; obtaining tracking information output by the stub function carrying the stub mark; and outputting the tracking information to a corresponding file for storage through a matching output pipeline. Through the method and the system, the problems of a fixed framework, difficulty in dynamic adjustment according to the business, high equipment load and poor pertinence of an existing business system performance assessment scheme realized based on a log system are solved.

Description

一种信息处理方法和系统 An information processing method and system for

技术领域 FIELD

[0001 ]本发明涉及测试技术领域,特别是涉及一种信息处理方法和系统。 [0001] The present invention relates to the technical field testing, particularly relates to an information processing method and system.

背景技术 Background technique

[0002]目前,在对开发软件进行测试时,通常需要对业务的系统性能进行评估。 [0002] Currently, when developing software for testing, it is often necessary to evaluate system performance business. 为了评估业务的系统性能,一般的做法是基于日志系统实现,例如,常用的日志系统包括:Log4j和LogBack日志系统等。 In order to evaluate the business performance, the general practice is to realize logging system, e.g., based on conventional logging system comprising: Log4j and LogBack logging systems.

[0003]目前,基于日志系统实现的对业务的系统性能的评估方案的具体流程可以如下: 日志系统可以将所有用于指示系统运行状态的信息输出至日志文件中进行保存,然后,从日志文件中筛选出需要的信息,以根据筛选出的信息对业务的系统性能进行评估。 [0003] At present, based on the specific system performance assessment program flow logging system can be implemented on the service as follows: all of the log information output system may be used to indicate system status log file to save, and then, from the log file screened necessary information to evaluate the performance of the service system according to information filtering out.

[0004]然而,基于日志系统实现的对业务的系统性能的评估方案存在诸多问题:日志系统的架构固定,一旦确定后难以进行调整;其次,将输出所有用于指示系统运行状态的信息,信息量大,设备负载高,且,需要对输出的日志文件进行筛选,提取得到需要的信息,不具有针对性,筛选提取过程困难,甚至部分信息难以分离提取。 [0004] However, there are solutions based on the evaluation of the performance of the system log service system implementation problems: log system architecture is fixed, it is difficult to adjust once defined; secondly, the outputs of all system information indicating the operating state, information large, high load device, and, the need for the log file output filter, to extract the necessary information obtained without targeted screening extraction process difficult, is difficult to separate the extracted partial information.

发明内容 SUMMARY

[0005]本发明提供一种信息处理方法和系统,以解决目前基于日志系统实现的对业务的系统性能的评估方案存在的架构固定、难以根据业务动态调整,以及,设备负载高、针对性差的问题。 [0005] The present invention provides an information processing method and system that addresses the current system performance based on the evaluation of the business program logging system architecture implemented in the presence of a fixed, it is difficult to dynamically adjust the business in accordance with, and a high load device, targeted poor problem.

[0006]为了解决上述问题,本发明公开了一种信息处理方法,包括: [0006] In order to solve the above problems, the present invention discloses an information processing method, comprising:

[0007] 确定待跟踪业务; [0007] service determined to be tracked;

[0008]对与所述确定的待跟踪业务相匹配的桩函数进行标记;其中,一个确定的相匹配的粧函数对应唯一一个桩标记; [0008] The function of the pile to be determined to match the track business labeled; wherein makeup function to determine a match the corresponding marker only one pile;

[0009]获取携带有所述粧标记的桩函数输出的跟踪信息; [0009] Gets the makeup carries trace information output labeled stubs;

[0010]将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0010] The trace information is output to the file by the corresponding matched stored output pipe.

[0011]优选地,将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存,包括: [0011] Preferably, the trace information to the file by the corresponding matched stored output conduit, comprising:

[0012] 确定所述跟踪信息对应的桩标记; [0012] determining the tracking tag information corresponding to the pile;

[0013] 确定与所述桩标记相匹配的管道标记; [0013] matched to Determine labeled marker with the pile;

[0014]将所述跟踪信息通过所述确定的与所述粧标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存。 [0014] The trace information output by said determining Duct labeled marker with the makeup matched to the corresponding outputs indicated file saved.

[0015]优选地,将所述跟踪信息通过所述确定的与所述粧标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存,包括: [0015] Preferably, the trace output pipe output information indicated by the marker conduit and determining the makeup of the marker to match the corresponding save file, comprising:

[0016]确定文件标记;其中,所述文件标记与所述确定的与所述桩标记相匹配的管道标记相对应; [0016] The determination of file marks; wherein said duct labeled with the file mark and determining the marker post corresponding matched;

[0017]将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出; [0017] The trace output pipe output information indicated by the marker determination pipe pile with the matched tag;

[0018] 将所述通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出的跟踪信息保存在所述确定的文件标记所指示的文件中保存。 [0018] The trace information output by said determination of said conduit duct marker marking the pile matches the stored output indicative of the determined stored in the file indicated by the file mark.

[0019] 优选地,所述方法还包括: [0019] Preferably, the method further comprising:

[0020] 动态配置所述粧标记与所述管道标记之间的对应关系,以及,所述管道标记与所述文件标记之间的对应关系。 [0020] The correspondence between the dynamic configuration of the mark and the makeup conduit mark, and the mark and the conduit correspondence between the file mark.

[0021] 优选地,将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存,包括: [0021] Preferably, the trace information to the file by the corresponding matched stored output conduit, comprising:

[0022] 通过所述相匹配的输出管道中的管道缓存对所述跟踪信息进行缓存; [0022] The tracking information is cached by the caching conduit to the matching output conduit;

[0023] 将所述管道缓存中缓存的跟踪信息输出至对应的文件中保存。 [0023] The trace cache pipeline cache information is output to the corresponding file saved.

[0024]优选地,所述方法还包括: [0024] Preferably, the method further comprising:

[0025]根据设定周期和/或缓存容量阈值,对所述相匹配的输出管道中的管道缓存中缓存的跟踪信息进行清理。 [0025] The setting period and / or buffer capacity threshold, the tracking information to the matching cache pipeline output pipe clean cached.

[0026] 本发明还公开了一种信息处理系统,包括: [0026] The present invention also discloses an information processing system, comprising:

[0027] 确定模块,用于确定待跟踪业务; [0027] determination module for determining traffic to be tracked;

[0028]标记模块,用于对与所述确定的待跟踪业务相匹配的桩函数进行标记;其中,一个确定的相匹配的桩函数对应唯一一个桩标记; [0028] marker module for marking the function of the pile to be tracked is determined to match the service; wherein a stub function is determined to match the corresponding marker only one pile;

[0029]获取模块,用于获取携带有所述桩标记的桩函数输出的跟踪信息; [0029] obtaining module, configured to obtain pile carries the marker stubs output trace information;

[0030]输出模块,用于将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0030] an output module for outputting the trace information corresponding to the file by the matched stored output pipe.

[0031] 优选地,输出模块,包括: [0031] Preferably, the output module comprising:

[0032] 桩标记确定子模块,用于确定所述跟踪信息对应的桩标记; [0032] Pile flag determination sub-module, for determining the tracking tag information corresponding to the pile;

[0033]管道标记确定子模块,用于确定与所述桩标记相匹配的管道标记; [0033] conduit flag determination sub-module for determining a match flag pipe pile with the marker;

[0034]输出子模块,用于将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存。 [0034] The output sub-module, the trace file information for output through the output conduit of the conduit is determined with the labeled marker pile indicated matched to the corresponding saved.

[0035]优选地,输出子模块,用于确定文件标记;其中,所述文件标记与所述确定的与所述粧标记相匹配的管道标记相对应;以及,将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出;以及,将所述通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出的跟踪信息保存在所述确定的文件标记所指示的文件中保存。 [0035] Preferably, the output sub-module, for determining a file mark; wherein said duct labeled with the file mark and determining the makeup of the corresponding marker matches; and, the tracking information by said determined output labeled marker with the conduit pipe output matches the pile indicated; and, the outlet conduit of the delivery duct flag determining flag to the pile matches indicated by the trace information stored in determining the document file stored in the mark indicated.

[0036] 优选地,所述系统还包括: [0036] Preferably, the system further comprising:

[0037] 配置模块,用于动态配置所述桩标记与所述管道标记之间的对应关系,以及,所述管道标记与所述文件标记之间的对应关系。 [0037] The configuration module for dynamically configuring the corresponding relationship between the pile correspondence between the mark and the mark conduit, and the conduit mark and the mark file.

[0038] 优选地,输出模块,用于通过所述相匹配的输出管道中的管道缓存对所述跟踪信息进行缓存;以及,将所述管道缓存中缓存的跟踪信息输出至对应的文件中保存。 [0038] Preferably, the output module, a conduit through the cache matches the output conduit tracking information cache; and, the trace cache pipeline cache information is output to a corresponding file stored .

[0039] 优选地,所述系统还包括: [0039] Preferably, the system further comprising:

[0040] 清理模块,用于根据设定周期和/或缓存容量阈值,对所述相匹配的输出管道中的管道缓存中缓存的跟踪信息进行清理。 [0040] The cleaning module, according to a set period and / or the buffer capacity threshold, the tracking information to the matching cache pipeline output pipe clean cached.

[0041 ]与现有技术相比,本发明包括以下优点: [0041] Compared with the prior art, the present invention includes the following advantages:

[0042] 本发明公开的信息处理方案可以动态的确定待跟踪业务,对与所述确定的待跟踪业务相匹配的桩函数进行标记;然后,获取携带有所述桩标记的桩函数输出的跟踪信息;并将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 Then track, obtain the carry output is a function of the pile the pile labeled; [0042] The information processing program disclosed in the present invention can be determined dynamically tracking service, the stub function for determining the service to be tracked matched labeled information; and the tracking information stored in the corresponding file that matches the output pipe through to the output. 可见,在本发明中,输出的跟踪彳目息可以与待跟踪业务相匹配,也即,需要对什么业务进行测试即可获取相对应的跟踪信息,使得输出的跟踪信息更具有针对性。 Seen, in the present invention, the tracking information output destination left foot can be matched with the service to be tracked, i.e., what operations need to be tested to obtain the corresponding track information, such that the tracking information output from the more targeted. 其次,在本发明中,获取的是携带有所述桩标记的桩函数输出的跟踪信息,换而言之,可以根据不同的业务动态对粧函数进行标记,以输出与业务匹配的跟踪信息,灵活性高,可以适应多种不同的场景。 Secondly, in the present invention, the acquired information is a function of the output trace carries the pile of pile mark, in other words, the makeup function for dynamically labeled according to different service, to output a matching service tracking information, high flexibility, can adapt to a variety of different scenarios. 此外,由于可以只输出与待跟踪业务相匹配的跟踪彳目息,故,减少了存储量,降低了设备负担,提高了处理效率。 Further, since the output can only be tracked with the tracking service matches the left foot mesh interest, therefore, to reduce the amount of storage, reducing the burden of equipment, processing efficiency is improved.

附图说明 BRIEF DESCRIPTION

[0043]图1是本发明实施例一中一种信息处理方法的步骤流程图; [0043] FIG. 1 is a flowchart of a embodiment of an information processing method of the present invention;

[0044]图2是本发明实施例二中一种信息处理方法的步骤流程图; [0044] FIG 2 is a flowchart according to the second step of the embodiment of an information processing method of the present invention;

[0045]图3是本发明实施例三中一种信息处理系统的结构示意图; [0045] FIG. 3 is a schematic structural diagram of an information processing system in three embodiments of the present invention;

[0046]图4是本发明实施例三中一种信息处理方法的步骤流程图; [0046] FIG. 4 is a flowchart of the three steps an information processing method of the embodiment of the present invention;

[0047]图5是本发明实施例四中一种信息处理系统的结构框图; [0047] FIG. 5 is a block diagram according to a fourth embodiment of an information processing system of the present invention;

[0048]图6是本发明实施例四中一种优选地信息处理系统的结构框图。 [0048] FIG. 6 is a block diagram of one preferred embodiment four information processing system according to the present invention.

具体实施方式 Detailed ways

[0049 ]为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。 [0049] For the above-described objects, features and advantages of the invention more apparent, the accompanying drawings and the following specific embodiments of the present invention will be further described in detail.

[0050] 实施例一 [0050] Example a

[0051 ]参照图1,示出了本发明实施例一中一种信息处理方法的步骤流程图。 [0051] Referring to Figure 1, there is shown a step of the present invention, an information processing method according to flowchart. 在本实施例中,所述信息处理方法包括: In the present embodiment, the information processing method comprising:

[0052] 步骤102,确定待跟踪业务。 [0052] Step 102, it is determined to be tracked traffic.

[0053]在本实施例中,可以根据实际需要测试的对象来配置以确定待跟踪业务。 [0053] In the present embodiment, may be configured to determine an object to be tracked according to the actual needs of the business test. 其中,所述待跟踪业务可以是如下情况中的任意至少一种:单一业务、单一业务中的某一流程和多业务组合等。 Wherein the service to be tracked may be any of a case where at least one of: a single service, a flow of a single service and multi-service combinations.

[00M]步骤104,对与所述确定的待跟踪业务相匹配的桩函数进行标记。 [00M] Step 104, the stub function for determining the service to be tracked matched labeled.

[0055]在本实施例中,可以采用桩标记的方式对所述与所述确定的待跟踪业务相匹配的粧函数的标记,以实现对指定的待跟踪业务的针对性的跟踪及测试。 [0055] In the present embodiment, the mark may be employed for the post-labeled with the manner to be determined to match the makeup track business function, and to achieve a targeted test track to be tracked on the specified service. 其中,一个确定的相匹配的桩函数对应唯——个粧标记。 Wherein a match stub function corresponding to the determined only - one makeup markers.

[0056]需要说明的是,桩函数(也即粧代码)可以实现对系统的跟踪,并得到对应的跟踪fg息。 [0056] Incidentally, a function of the pile (i.e. makeup codes) may be implemented for tracking system and obtain the corresponding track information fg.

[0057 ]步骤106,获取携带有所述粧标记的粧函数输出的跟踪信息。 [0057] Step 106, acquiring tracking information carrying the marker makeup makeup function output.

[0058]在本实施例中,粧函数默认的可以是不输出跟踪信息的,只有当粧函数被标记后(也即,携带有桩标记的桩函数)才输出跟踪信息。 [0058] In the present embodiment, the makeup may not function default output tracking information, makeup function is labeled (i.e., labeled pile carrying stubs) only when the output of the tracking information only. 在本实施例中,可以获取携带有所述桩标记的桩函数输出的跟踪信息,由于携带有所述桩标记的桩函数是与待跟踪业务相匹配的, 因此,获取到的跟踪信息也是与待跟踪业务相匹配的,进而通过获取的跟踪信息可以实现对所述确定的待跟踪业务的测试和评估。 In the present embodiment, the piles may be obtained carrying information function of the output trace labeled pile, the pile due carries markers to be tracked with stubs to match the service, and therefore, the tracking information is obtained and match service to be tracked, and thus can realize the evaluation of the test and determined to be tracked by tracking traffic information acquired.

[0059]步骤1〇8,将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0059] Step 1〇8, the trace information matched to the corresponding output pipe output file saved.

[0060]在本实施例中,不同的跟踪信息可以对应不同的输出管道,通过不同的输出管道输出的跟踪信息可以保存在相对应的文件中。 [0060] In the present embodiment, different tracking information may correspond to different output pipe, it may be stored in the corresponding file by tracking information output different output conduit. 需要说明的是,不同的跟踪信息具体可以是指不同类型的跟踪信息,隶属于同一类型(针对同一待跟踪业务的测试)下的多个跟踪信息是可以通过同一输出管道输出的。 Incidentally, different tracking information may specifically refer to different types of tracking information, belonging to the same type (to be tracked for the same service test) is a plurality of tracking information in the same output can be output through the pipe. 进一步还需要说明的是,输出管道可以对应一个或多个文件,本实施例对此不作限制。 Further also be noted that the outlet conduit may correspond to one or more files, the present embodiment is not limited to this embodiment. 其中,所述输出管道可以是实体的传输通路,也可以是基于软件实现的虚拟化传输通路。 Wherein the output transmission path conduit may be an entity may be a transmission path based virtualization software implementation.

[0061 ]在本实施例中,由于跟踪信息保存在对应的文件中,因此,在进行测试和评估时, 可以直接从相应地文件中获取对应的跟踪信息,根据不同的文件中分类保存的跟踪信息可以实现对系统性能的细致分析,快速定位问题,不需要进行额外的筛选提取操作,简化了操作流程,提高了效率。 [0061] Since the tracking information is stored in the corresponding file, and therefore, during testing and evaluation, can be acquired from a track information corresponding to a corresponding file in the present embodiment directly, depending on the classification of documents stored tracking information can achieve a detailed analysis of system performance, quickly locate the problem, no additional screening extraction operation, simplifying the operational processes and improve efficiency.

[0062]综上所述,本实施例所述的信息处理方法可以动态的确定待跟踪业务,对与所述确定的待跟踪业务相匹配的桩函数进行标记;然后,获取携带有所述桩标记的粧函数输出的跟踪信息;并将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0062] As described above, the present embodiment the information processing method of the embodiment may be determined dynamically tracking service, the stub function for determining the service to be tracked using a matched tag; then obtaining carries the pile makeup function of the output trace information mark; and the tracking information to the file by the corresponding matched stored output pipe. 可见,在本实施例中,输出的跟踪信息可以与待跟踪业务相匹配,也即,需要对什么业务进行测试即可获取相对应的跟踪信息,使得输出的跟踪信息更具有针对性。 Seen, in this embodiment, the tracking information may be matched to the output service to be tracked, i.e., what operations need to be tested to obtain the corresponding track information, such that the tracking information output from the more targeted.

[0063] 其次,在本实施例中,获取的是携带有所述桩标记的桩函数输出的跟踪信息,换而言之,可以根据不同的业务动态对粧函数进行标记,以输出与业务匹配的跟踪信息,灵活性高,可以适应多种不同的场景。 [0063] Next, in the present embodiment, the acquired information is of the carrying track pile pile marker function output, in other words, the makeup function for dynamically labeled according to different services and service output matching tracking information, high flexibility, can adapt to a variety of different scenarios. 此外,由于可以只输出与待跟踪业务相匹配的跟踪信息,故, 减少了存储量,降低了设备负担,提高了处理效率。 Further, since only the output of the matched service tracking information to be tracked, therefore, it reduces the amount of storage, reducing the burden of equipment, processing efficiency is improved.

[0064] 实施例二 [0064] Second Embodiment

[00651参照图2,示出了本发明实施例二中一种信息处理方法的步骤流程图。 [00651 Referring to FIG. 2, there is shown the procedure of Example II of the present invention an information processing method of the flowchart. 在本实施例中,所述信息处理方法包括: In the present embodiment, the information processing method comprising:

[0066]步骤202,确定待跟踪业务。 [0066] Step 202, it is determined to be tracked traffic.

[0067]在本实施例中,待跟踪业务可以根据技术人员的配置请求操作动态确定及更新。 [0067] In the present embodiment, it can be tracked service request operation according to the configuration of the art to determine and dynamically updated. [0068]步骤204,对与所述确定的待跟踪业务相匹配的桩函数进行标记。 [0068] Step 204, the stub function for determining the service to be tracked matched labeled.

[0069]在本实施例中,可以针对性地对粧函数进行标记,以使被标记的桩函数均为与所述待跟踪业务匹配的粧函数,使得跟踪更具有针对性;且,实现了对待跟踪业务的定制。 [0069] In the present embodiment, the makeup may be targeted to the function labeled, so that the pile are labeled with the function of the service to be tracked makeup matching function, so that the tracking is more targeted; and to achieve a treat tracking service customization. 其中,一个确定的相巧配的桩函数对应唯一一个桩标记,以便编码控制及后续对跟踪信息^勺分析。 Wherein phase coincidence stub function corresponding to the determined assigned a unique tag a pile, so as to encode the control and subsequent analysis of the tracking information ^ spoon. 桩标记可以采用任意一种适当的方式,例如,可以但不限于采用数字编码方式、或、 JAVA类名+数字编码方式。 Pile markers may be employed in any suitable manner, for example, without limitation, digital encoding, or, JAVA class name + digital encoding.

[0070]步骤206,获取携带有所述桩标记的桩函数输出的跟踪信息。 [0070] Step 206, obtaining the output carrying stubs pile marker tracking information.

[0071] 在本实施例中,系统内所有桩函数可以不区分输出级别,即,所有桩函数的输出级另IJ可以一致,并且默认都是不输出的。 [0071] In the present embodiment, the system can not distinguish between all stubs output level, i.e., the output stage of all stubs IJ may be identical to another, and the default is not output. 避免了因输出信息分级(如debug、inf〇r、warn、 error)带来的桩函数的编码复杂度和跟踪信息输出的控制复杂度,打桩一经编码可以不用再修改代码。 Avoid the result output rating (e.g. Debug, inf〇r, warn, error) caused by the complexity of encoding stubs complexity information and tracking control output, upon piling can no longer change the encoded codes.

[0072] 步骤2〇8,将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0072] Step 2〇8, the trace information matched to the corresponding output pipe output file saved.

[0073]在本实施例中,所述将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存具体可以包括:确定所述跟踪信息对应的桩标记;确定与所述桩标记相匹配的管道标记;将所述跟5?示信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存。 [0073] In the present embodiment, the trace information stored corresponding to the file by the match is output to the output pipe may specifically include: determining the tracking tag information corresponding to the pile; pile determining the phase marker tag matches the pipeline;? 5 with the information shown by the flag output conduit pipe pile with the determined match mark indicated output to save the corresponding document.

[0074]优选地,所述将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存,具体可以包括:确定文件标记;其中,所述文件标记与所述确定的与所述粧标记相匹配的管道标记相对应;将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出;将所述通过所述确定的与所述粧标记相匹配的管道标记所指示的输出管道输出的跟踪信息保存在所述确定的文件标记所指示的文件中保存。 [0074] Preferably the output pipe output the trace information indicated by the marker determination conduit and said marker post corresponding to the matched stored documents may specifically include: determining a file mark; wherein the file mark labeled with the conduit and determining the makeup of the corresponding marker matches; the trace output pipe output information indicated by the marker determination pipe pile with the matched tag; the output pipe of said delivery duct marker and determining the makeup of the marker matches indicated by the trace information stored in the file of the determined file mark indicated by the saved.

[0075]可见,在本实施例中,桩函数可以动态标记,且,被标记的粧函数可以基于管道标记与文件标记关联(绑定),也即,实现了被标记的桩函数输出的跟踪信息与文件的动态绑定。 [0075] visible, in the present embodiment, the stub function can be dynamically labeled and, labeled function may be based on the makeup of the pipe associated with the file marker tag (binding), i.e., to achieve tracking labeled stubs output dynamic binding information and documents. 指定的桩函数(也即,被标记的桩函数)输出的跟踪信息可以保存在对应关联(绑定)的文件中,未指定的粧函数不输出。 Pile specified function (i.e., labeled stubs) output trace information can be stored in the corresponding file association (binding), no output function is not specified makeup. 需要说明的是,被标记的桩函数与文件之间的对应关系可以是多对多。 It should be noted that the correspondence between the file is marked with stubs may be many to many. 如,一个被标记的粧函数可以单独指定一个对应的文件;也可以将多个被标记的桩函数捆绑在一起,指定一个对应的文件;此外,一个被标记的桩函数也可以处于不同的捆绑组合中,并对应不同的多个文件,本实施例对此不作限制。 For example, a labeled makeup function can specify a file corresponding to the individual; may be bundled plurality of stubs labeled, corresponding to a specified file; in addition, a marked stubs may also be in different bundles combination, and a corresponding plurality of different files, the present embodiment is not limited to this embodiment. 采用这种动态的多对多的绑定方式,可以灵活完成业务某一过程点的跟踪、业务整个过程及各子业务的跟踪、以及多业务组合的跟踪等多种情况,且在完成上述多种情况的跟踪时无需修改粧函数的代码。 With this dynamic binding-many manner, the flexibility of a complete business process tracking point, the whole process more tracking service and each sub-service and multi-service portfolio tracking, and said plurality completed without code changes the makeup function of tracking cases.

[0076]在本实施例中,所述方法还可以包括: [0076] In the present embodiment, the method may further comprise:

[0077]步骤210,动态配置所述桩标记与所述管道标记之间的对应关系,以及,所述管道标记与所述文件标记之间的对应关系。 [0077] Step 210, configuring the dynamic correspondence between the pile and the pipe marker tag, and a correspondence relationship between the tag marking the pipe with the file.

[0078]在本实施例中,管道标记与桩标记之间的对应关系可以是多对多或一对多或多对一等多种情况,同样地,管道标记与文件标记之间的对应关系也可以是多对多或一对多或多对一等多种情况,本实施例对此不作限制。 [0078] In the present embodiment, the correspondence relationship between the mark and the pipe piles and the like where markers may be more or many-to-many or many to one correspondence between the same manner, the pipeline tag and tag files or it may be a many-to-many or many other circumstances, the present embodiment is not limited to this embodiment.

[0079]优选地,所述动态配置得到的配置信息可以通过XML(Extensible Markup Language,可扩展标记语言)文件保存。 [0079] Preferably, the dynamic configuration information can be obtained by configuration XML (Extensible Markup Language, extensible Markup Language) file is saved. 其中,所述配置信息包括所述桩标记与所述管道标记之间的对应关系,以及,所述管道标记与所述文件标记之间的对应关系,以及动态指定的桩标记。 Wherein the configuration information includes a correspondence between the pile and the pipe marker tag, and a corresponding relationship between the file mark flag with the conduit, and the pile tag specified dynamically. 在系统启动时,可以获取所述XML文件,根据获取的XML文件中的配置信息对系统进行初始化,以完成对确定的桩函数的标记,被标记的粧函数与匹配的输出管道的绑定,以及,输出管道与文件之间的绑定。 At system startup, the XML file can be acquired, the system is initialized according to configuration information acquired in the XML file, to complete the mark function determined pile binding, and the output pipe makeup matching function labeled, and binding between the pipe and the output file.

[0080]综上所述,本实施例所述的信息处理方法可以动态的确定待跟踪业务,对与所述确定的待跟踪业务相匹配的桩函数进行标记;然后,获取携带有所述桩标记的桩函数输出的跟踪信息;并将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0080] As described above, the present embodiment the information processing method of the embodiment may be determined dynamically tracking service, the stub function for determining the service to be tracked using a matched tag; then obtaining carries the pile labeled trace information output function of the pile; and the tracking information matches the output to a corresponding output pipe saved file. 可见,在本实施例中,输出的跟踪信息可以与待跟踪业务相匹配,也即,需要对什么业务进行测试即可获取相对应的跟踪信息,使得输出的跟踪信息更具有针对性。 Seen, in this embodiment, the tracking information may be matched to the output service to be tracked, i.e., what operations need to be tested to obtain the corresponding track information, such that the tracking information output from the more targeted.

[0081 ]其次,在本实施例中,获取的是携带有所述桩标记的桩函数输出的跟踪信息,换而言之,可以根据不同的业务动态对桩函数进行标记,以输出与业务匹配的跟踪信息,灵活性高,可以适应多种不同的场景。 [0081] Next, in the present embodiment, the acquired information is of the carrying track pile pile marker function output, in other words, the instrumented functions can be dynamically labeled according to different services and service output matching tracking information, high flexibility, can adapt to a variety of different scenarios. 此外,由于可以只输出与待跟踪业务相匹配的跟踪信息,故, 减少了存储量,降低了设备负担,提高了处理效率。 Further, since only the output of the matched service tracking information to be tracked, therefore, it reduces the amount of storage, reducing the burden of equipment, processing efficiency is improved.

[0082]进一步地,由于可以针对性的跟踪信息对系统性能进行细致分析和评估,因此,通过本实施例所述的方法可以快速定位问题,并且可以准确评估优化前后的系统的性能的差异,降低了开发、优化、测试的成本,大大缩短了评估和优化的周期。 [0082] Further, since the information track targeted for detailed analysis and evaluation of system performance, and therefore, can quickly locate the problem by the method described in the embodiment, and can accurately assess the difference in performance of the system before and after optimization, reducing development, optimization, the cost of testing, greatly reducing the assessment and optimization of cycle.

[0083] 实施例三 [0083] Example three

[0084]结合上述实施例,本实施例以一个具体实例对本发明实施例所述的信息处理方法进行详细说明。 [0084] conjunction with the above embodiments, the present embodiment of the information processing method according to a specific example embodiment of the present invention is described in detail. 参照图3,示出了本发明实施例三中一种信息处理系统的结构示意图。 Referring to Figure 3, there is shown a schematic view of the present invention according to a third information processing system of one embodiment. 在本实施例中,所述信息处理方法可以但不限于通过所述信息处理系统来实现。 In the present embodiment, the information processing method may be implemented by, but not limited to the information processing system.

[0085]如图3所示,所述信息处理系统可以包括:被测系统310、文件系统320、信息收集器33〇、管道管理器34〇、控制管理器35〇和JVM(Java Virtual Machine,Java虚拟机)管理终端工具360。 [0085] As shown, the information processing system 3 may include: a test system 310, file system 320, information collector 33〇, 34〇 pipeline manager, and control manager 35〇 JVM (Java Virtual Machine, Java virtual machine) terminal management tool 360. 其中,被测系统310中可以包括:业务1、业务2和业务3;业务1、业务2和业务3的相应位置处分别对应设置有桩函数。 Wherein the test system 310 may include: a service 1, service 2 and service 3; the service 1, service 2 and the service 3 is provided with respective positions corresponding stub function. 需要说明的是,在本实施例中,可以对单一业务(如业务1)进行跟踪,也可以对多业务组合(如,业务1、业务2和业务3的组合)进行跟踪,还可以多单一业务中的某一流程进行跟踪。 Incidentally, in the present embodiment, may be made to a single service (e.g., service 1) tracking, may be multi-service combination (e.g., service 1, service combination 2 and the service 3) tracking, may also be multiple single a business process to track.

[0086]参照图4,示出了本发明实施例三中一种信息处理方法的步骤流程图。 [0086] Referring to Figure 4, there is shown the procedure of Example III of the present invention an information processing method of the flowchart. 在本实施例中,所述信息处理方法可以包括: In the present embodiment, the information processing method may comprise:

[0087] 步骤402,确定待跟踪业务。 [0087] Step 402, it is determined to be tracked traffic.

[0088] 在本实施例中,可以确定待跟踪业务为业务1。 [0088] In the present embodiment, it can be tracked to determine a service business.

[0089]步骤404,对于业务1相匹配的桩函数进行标记。 [0089] Step 404, a service function for the pile matches the marking.

[0090 ]如图3所示,业务1处对应的桩函数携带有桩标记1。 [0090] As shown in FIG. 3, the corresponding service function carrying a pile numeral 1.

[0091]步骤406,获取携带有桩标记1的桩函数输出的跟踪信息u [0091] Step 406, the output stubs acquiring carries the pile of tracking information flag 1 u

[0092]在本实施例中,可以通过信息收集器:330获取携带有桩标记1的桩函数输出的跟踪信息1。 [0092] In the present embodiment, by the information collector: 330 acquires carrying function of the output trace information flag piles of the pile 1 1. 其中,信息收集器330面向应用程序暴露打桩(桩函数)接口,内部则可以完成跟踪信息的过滤、包装、短时缓存、分发功能。 Wherein information collector 330 exposed piling oriented application (stubs) interfaces, can be completed inside the filter, packaging, short-caching, distribution function trace information. 其中,跟踪信息的获取可以通过对桩函数接口的调用来实现,跟踪信息的获取不占用或极少占用业务运行时间,实现了对业务处理最小千预的目的。 Among them, the trace information can be acquired by calling the pile of function interface, tracking access to information does not occupy or occupy very little time to run the business, to achieve the purpose of the business processes of minimum intervention.

[0093]优选地,如图3所示,所述信息收集器330可以包括:跟踪信息过滤转换器3301、缓存池33〇2和分发器33〇3。 [0093] Preferably, as shown in FIG. 3, the information collector 330 may include: a filter tracking information converter 3301, and a buffer pool 33〇2 33〇3 distributor. 其中,跟踪信息过滤转换器幻01可以只采集指定的桩函数输出的跟踪信息。 Wherein the trace filter converter 01 can collect only the magic trace information specified stubs output. 缓存池3302可以缓存获取的指定的桩函数输出的跟踪信息。 3302 can trace buffer pool cache obtaining specified stubs output. 分发器3303可以用于对缓存池33〇2缓存的跟踪信息进行分发。 Dispenser 3303 can be used to track information 33〇2 buffer pool cache for distribution. 例如,可以将携带桩标记丨的桩函数输出的跟踪信息1分发至对应的输出管道。 For example, the piles carry flag Shu tracking information distribution function of the output of the pile 1 to a corresponding output pipe. 需要说明的是,桩标记与管道标记的映射关系可以保存在所述分发器33〇3中,例如,若桩标记1对应的管道标记为1,则,所述分发器3303可以将从缓存池3302中提取的跟踪信息1,分发至管道标记为1对应至少的输出管道丨中。 Incidentally, labeled with the pipe pile mapping relationship may be stored in the tag dispenser 33〇3, for example, if the pile pipe 1 corresponding to the mark flag is 1, the dispenser 3303 may be from the buffer pool extract tracking information 3302 1, the pipe is distributed to the corresponding labeled 1 in at least a delivery duct Shu.

[0094]步骤40S,将跟踪信息1通过相匹配的输出管道1输出至对应的文件中保存。 [0094] Step 40S, the trace information output 11 via output pipe matched to the corresponding file saved.

[0095]在本实施例中,管道管理器340可以用于控制跟踪信息输出至对应的文件中,输出管道的建立、销毁和标记均可通过所述管道管理器340实现。 [0095] In the present embodiment, pipeline manager 340 may be used to control the tracking information to the corresponding file, create the output conduit, and destruction mark 340 can be achieved by the pipeline manager.

[00½]如图3所示,所述管道管理器340动态建立有输出管道1和输出管道2。 [00½] shown in FIG. 3, the pipeline manager 340 dynamically establish an output pipe and the output pipe 2. 其中,输出管道1对应的文件为文件1,即,在本实施例中,根据信息1可以通过输出管道丨输出至对应文件1中保存。 Wherein an outlet conduit for the file corresponding to the file 1, i.e., in the present embodiment may be output through the output conduit Shu to save the information corresponding to the file 1 1.

[009^ 优选地,各个输出管道中可以包括容量周期控制器、管道缓存和文件记录器。 [009 ^ Preferably, each output duct may include a capacity control cycle, and the file cache pipeline recorder. 如图3所示,输出管道1中可以包括:容量周期控制器M01、管道缓存3402和文件记录器3403。 As shown in FIG. 3, the output conduit 1 may include: a capacity controller M01 cycle, the pipeline cache file writer 3402 and 3403. 需要说明的是,容量周期控制器3401可以基于容量控制器和周期控制器实现。 Incidentally, the capacity period controller 3401 may implement a controller based on the capacity and cycle controller. 当管道缓存3402中的缓存容量达到阈值或者周期定时器时间达到时,基于容量控制器和周期控制器实现的容量周期控制器3401可以控制管道缓存3402将缓存的跟踪信息全部发送到文件记录器3403中,并清空管道缓存3402中的缓存。 When the cache capacity cache pipeline 3402 reaches a threshold value or cycle time reaches the timer, the capacity controller based on the capacity and the cycle period controller 3401 may control the controllers pipeline cache buffer 3402 transmits the tracking information to a file all of the recorder 3403 in 3402 in the cache and empty the pipeline cache.

[0098]参照图3,需要说明的是,在本实施例中,还可以通过控制管理器350控制整个系统的配置、启动、暂停、关闭等操作,其中,所述控制管理器350对外提供有动态配置接口,所述动态配置接口可以采用MBean实现。 [0098] Referring to FIG. 3, to be noted that, in the present embodiment, it is also controlled by the control manager 350 of the system configuration, start, pause, and so closing operation, wherein the control manager 350 is provided with the external dynamically configure the interface, the interface may use dynamic configuration MBean implementation. 通过所述动态配置接口可以指定配置文件的路径,在通过配置文件的路径获取到配置文件之后,可以根据所述配置文件实现对系统的初始化配置,如,指定需要进行标记的桩函数,桩标记与管道标记的对应关系,管道标记与文件标记的对应关系和创建输出管道等初始化操作。 Configuration file can be specified by the dynamic configuration interface path, after acquiring the path to the configuration file by the configuration file, the system initialization configuration may be achieved according to the configuration file, e.g., specify required stubs labeled marker pile labeled correspondence relationship with the conduit, the pipeline tag and the corresponding relationship, and create an output file mark pipelines initialization.

[00"]优选地,如图3所示,配置文件可以以XML文件形式保存在文件系统320中。其中,配置文件可根据被测系统310中的业务的类型来定义并保存。当确定待跟踪业务后,可以通过动态配置接口获取相应地配置文件,并根据配置文件对系统进行初始化操作。其中,配置文件的变更包括但不仅限于:增加变更、删除变更和修改变更,相应地,配置文件定义可采用如下多种方案:方案一,定义三个配置文件,每个配置文件定义一个输出管道,每个输出管道只关联一类变更的桩标记,分别用于跟踪增加、删除、修改,系统信息分别输出到三个文件,分别对应增加变更、删除变更、修改变更。方案二,定义一个配置文件,在所述一个配置文件中定义三个输出管道,同时跟踪三类变更并输出三个系统信息。方案三,定义一个配置文件,在所述一个配置文件中定义一个 [00 "] Preferably, as shown, the profile 3 can be saved as an XML file in the file system 320 which, profiles may be defined and stored depending on the type of test system 310 services. When it is determined to be after tracking service can obtain corresponding configuration file dynamically configure the interface, and initializing the system operation according to the configuration file which changes the profile include, but are not limited to: increased changed, deleted changes and modifications changed accordingly, profile various schemes may be employed is defined as follows: scheme I, defined three profiles, each profile defines an output pipe, each output duct is associated only a class mark change of the pile, respectively, for tracking to add, delete, modify, system outputs information to three files, corresponding to an increase changed, deleted alterations, modifications, changes. scheme II, to define a configuration file that defines a three output pipe in the configuration file, while tracking the three systems and outputs three changes information. Solution 3 define a profile, the one defined in a configuration file, 输出管道,并关联三类变更的桩标记,跟踪结果为一个输出文件,包含有三类变更的系统信息。 Output pipe, and three markers associated pile change, a tracking result output file contains three types of system information change.

[0100] 此外,在本实施例中,还可以通过JMX协议可以实现JVM管理终端工具360与控制管理器350的远程连接,进而实现对系统的远程控制。 [0100] Further, in the present embodiment may also be implemented JVM tool management terminal 360 and the control manager 350 via the remote connection protocol JMX, to perform remote control of the system.

[0101]综上所述,本实施例所述的信息处理方法可以动态的确定待跟踪业务,对与所述确定的待跟踪业务相匹配的桩函数进行标记;然后,获取携带有所述桩标记的桩函数输出的跟踪信息;并将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0101] As described above, the present embodiment the information processing method of the embodiment may be determined dynamically tracking service, the stub function for determining the service to be tracked using a matched tag; then obtaining carries the pile labeled trace information output function of the pile; and the tracking information matches the output to a corresponding output pipe saved file. 可见,在本实施例中,输出的跟踪信息可以与待跟踪业务相匹配,也即,需要对什么业务进行测试即可获取相对应的跟踪信息,使得输出的跟踪信息更具有针对性。 Seen, in this embodiment, the tracking information may be matched to the output service to be tracked, i.e., what operations need to be tested to obtain the corresponding track information, such that the tracking information output from the more targeted.

[0102]其次,在本实施例中,获取的是携带有所述桩标记的桩函数输出的跟踪信息,换而言之,可以根据不同的业务动态对桩函数进行标记,以输出与业务匹配的跟踪信息,灵活性高,可以适应多种不同的场景。 [0102] Next, in the present embodiment, the acquired information is of the carrying track pile pile marker function output, in other words, the instrumented functions can be dynamically labeled according to different services and service output matching tracking information, high flexibility, can adapt to a variety of different scenarios. 此外,由于可以只输出与待跟踪业务相匹配的跟踪信息,故, 减少了存储量,降低了设备负担,提高了处理效率。 Further, since only the output of the matched service tracking information to be tracked, therefore, it reduces the amount of storage, reducing the burden of equipment, processing efficiency is improved.

[0103]进一步地,由于可以针对性的跟踪信息对系统性能进行细致分析和评估,因此,通过本实施例所述的方法可以快速定位问题,并且可以准确评估优化前后的系统的性能的差异,降低了开发、优化、测试的成本,大大缩短了评估和优化的周期。 [0103] Further, since the information track targeted for detailed analysis and evaluation of system performance, and therefore, can quickly locate the problem by the method described in the embodiment, and can accurately assess the difference in performance of the system before and after optimization, reducing development, optimization, the cost of testing, greatly reducing the assessment and optimization of cycle.

[0104]需要说明的是,对于前述的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。 [0104] Incidentally, the foregoing embodiment of the method, for ease of description, it is described as a series combination of actions, those skilled in the art should understand that the present invention is not described in the operation sequence limiting, since according to the present invention, some steps may be performed simultaneously or in other sequences. 其次,本领域技术人员也应该知悉, 说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明所必需的。 Secondly, those skilled in the art should also understand that the embodiments are described in the specification are exemplary embodiments, the operation involved is not necessarily required for the present invention. [0105]实施例四 [0105] Fourth Embodiment

[0106]基于与上述方法实施例同一发明构思,参照图5,示出了本发明实施例四中一种信息处理系统的结构框图。 [0106] Based on the same inventive concept Example embodiments of the methods described above, with reference to FIG. 5, there is shown a block diagram of the embodiment of the present invention is an information processing system Fourth embodiment. 在本实施例中,所述信息处理系统包括: In the present embodiment, the information processing system comprising:

[0107]确定模块502,用于确定待跟踪业务。 [0107] determining module 502 for determining a service to be tracked.

[0108]标记模块504,用于对与所述确定的待跟踪业务相匹配的粧函数进行标记。 [0108] marking module 504 for marking of the identified service matches to be tracked makeup function. 其中, 一个确定的相匹配的桩函数对应唯一一个桩标记。 Wherein a stub function is determined to match the corresponding marker post only.

[0109]获取模块506,用于获取携带有所述桩标记的桩函数输出的跟踪信息。 [0109] obtaining module 506, configured to obtain pile carries the output stubs marker tracking information.

[0110]输出模块508,用于将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0110] Output module 508, for output to the trace information corresponding to the file by the matched stored output pipe.

[0111]优选地,参照图6,示出了本发明实施例四中一种优选地信息处理系统的结构框图。 [0111] Preferably, referring to FIG. 6, the present invention shows a block diagram of one preferred embodiment four information processing system of FIG.

[0112]在本实施例中,所述输出模块508可以包括:桩标记确定子模块5082,用于确定所述跟踪信息对应的桩标记;管道标记确定子模块5084,用于确定与所述桩标记相匹配的管道标记;输出子模块5086,用于将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存。 [0112] In the present embodiment, the output module 508 may include: a determination sub-module 5082 marks the pile, the pile marker for determining the corresponding tracing information; pipeline tag determination sub-module 5084 for determining the post tag matches tag conduit; output sub-module 5086, the trace file information for output through the output conduit of the conduit is determined with the labeled marker pile indicated matched to the corresponding saved. 进一步优选地,所述输出子模块508, 具体可以用于确定文件标记;其中,所述文件标记与所述确定的与所述桩标记相匹配的管道标记相对应;以及,将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出;以及,将所述通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出的跟踪信息保存在所述确定的文件标记所指示的文件中保存。 Further preferably, the output sub-module 508, may be used to determine the specific file marks; wherein the file mark and marking the determined pipe pile with the corresponding match flag; and, the tracking information output conduit pipe output by said determining and marking the post mark matches indicated; and, through the conduit of the mark and determining the post mark matches indicated by the output pipe output trace determining information stored in the document file stored in the mark indicated.

[0113]优选地,所述系统还可以包括:配置模块510,用于动态配置所述桩标记与所述管道标记之间的对应关系,以及,所述管道标记与所述文件标记之间的对应关系。 [0113] Preferably, the system may further comprise: a configuration module 510 for configuring the dynamic correspondence between the pile and the pipe marker tag, and the tag of the file mark conduit between correspondence.

[0114] 优选地,输出模块508,具体可以用于通过所述相匹配的输出管道中的管道缓存对所述跟踪信息进行缓存;以及,将所述管道缓存中缓存的跟踪信息输出至对应的文件中保存。 [0114] Preferably, the output module 508, may be used to specifically match the output of the conduit pipe in the buffer cache of the tracking information; and the buffer pipe trace cache information is output to the corresponding save the file. 进一步优选地,所述系统还可以包括:清理模块512,用于根据设定周期和/或缓存容量阈值,对所述相匹配的输出管道中的管道缓存中缓存的跟踪信息进行清理。 Further preferably, the system may further comprising: a cleaning module 512, according to a set period and / or the buffer capacity threshold, the tracking information to the matching cache pipeline output pipe clean cached.

[0115]综上所述,本实施例所述的信息处理系统可以动态的确定待跟踪业务,对与所述确定的待跟踪业务相匹配的桩函数进行标记;然后,获取携带有所述粧标记的粧函数输出的跟踪信息;并将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 [0115] As described above, the present embodiment of the information processing system may be determined dynamically tracking service, the stub function for determining the service to be tracked using a matched tag; then obtaining carries the makeup makeup function of the output trace information mark; and the tracking information to the file by the corresponding matched stored output pipe. 可见,在本实施例中,输出的跟踪信息可以与待跟踪业务相匹配,也即,需要对什么业务进行测试即可获取相对应的跟踪信息,使得输出的跟踪信息更具有针对性。 Seen, in this embodiment, the tracking information may be matched to the output service to be tracked, i.e., what operations need to be tested to obtain the corresponding track information, such that the tracking information output from the more targeted.

[0116]其次,在本实施例中,获取的是携带有所述桩标记的桩函数输出的跟踪信息,换而言之,可以根据不同的业务动态对桩函数进行标记,以输出与业务匹配的跟踪信息,灵活性高,可以适应多种不同的场景。 [0116] Next, in the present embodiment, the acquired information is of the carrying track pile pile marker function output, in other words, the instrumented functions can be dynamically labeled according to different services and service output matching tracking information, high flexibility, can adapt to a variety of different scenarios. 此外,由于可以只输出与待跟踪业务相匹配的跟踪信息,故, 减少了存储量,降低了设备负担,提高了处理效率。 Further, since only the output of the matched service tracking information to be tracked, therefore, it reduces the amount of storage, reducing the burden of equipment, processing efficiency is improved.

[0117]进一步地,由于可以针对性的跟踪信息对系统性能进行细致分析和评估,因此,通过本实施例所述的方法可以快速定位问题,并且可以准确评估优化前后的系统的性能的差异,降低了开发、优化、测试的成本,大大缩短了评估和优化的周期。 [0117] Further, since the information track targeted for detailed analysis and evaluation of system performance, and therefore, can quickly locate the problem by the method described in the embodiment, and can accurately assess the difference in performance of the system before and after optimization, reducing development, optimization, the cost of testing, greatly reducing the assessment and optimization of cycle.

[0118]对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 [0118] For the apparatus of the embodiment, since the method of the embodiment which is substantially similar, the description of a relatively simple, some embodiments of the methods see relevant point can be described.

[0119]本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 [0119] In the present specification, various embodiments are described in a progressive way, differences from the embodiment and the other embodiments each of which emphasizes embodiment, various portions of the same embodiment of similarity between the embodiments refer to each other.

[0120]以上对本发明所提供的一种信息处理方法和系统,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理角牛本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 [0120] or more of an information processing method and system of the present invention provides, described in detail herein through specific examples of the principles and embodiments of the present invention have been set forth in the above description of embodiments merely used to help manage the method and the core idea of ​​the present invention, horned cattle; while those of ordinary skill in the art, according to the ideas of the present invention, there are modifications to the specific embodiments and application scope of the specification content It should not be construed as limiting the present invention.

Claims (12)

1.一种信息处理方法,其特征在于,包括: 确定待跟踪业务; 对与所述确定的待跟踪业务相匹配的桩函数进行标记;其中,一个确定的相匹配的桩函数对应唯——个桩标记; 获取携带有所述桩标记的桩函数输出的跟踪信息; 将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 1. An information processing method characterized by comprising: determining a service to be tracked; stubs on the service determined to be tracked matched labeled; wherein a stub function is determined to match the corresponding CD - picket marker; acquisition function carries a pile of said pile labeled output trace information; trace information is output to the file by the corresponding matched stored output pipe.
2.根据权利要求1所述的方法,其特征在于,将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存,包括: 确定所述跟踪信息对应的桩标记; 确定与所述桩标记相匹配的管道标记; 将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存。 2. The method according to claim 1, wherein the trace information output by the output pipe matched to the corresponding save file, comprising: determining the tracking tag information corresponding to the pile; determining the pile tag matches tag conduit; the trace information output by the determination flag conduit pipe and the post mark matches a corresponding output to the indicated file saved.
3. 根据权利要求2所述的方法,其特征在于,将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存,包括: 确定文件标记;其中,所述文件标记与所述确定的与所述粧标记相匹配的管道标记相对应; 将所述跟踪信息通过所述确定的与所述粧标记相匹配的管道标记所指示的输出管道输出; 将所述通过所述确定的与所述粧标记相匹配的管道标记所指示的输出管道输出的跟踪信息保存在所述确定的文件标记所指示的文件中保存。 3. The method according to claim 2, wherein the trace output pipe output information indicated by the marker determination conduit and said marker post corresponding to the matched stored documents, comprising: determining file mark; wherein said duct labeled with the file mark and determining the makeup of the corresponding marker matches; the trace information indicated by the marker determination conduit and said makeup mark matches output pipe output; said tracking information determined by the makeup of the pipe marker tag matches the indicated output file is stored in the output conduit of the determined file mark indicated by the saved.
4. 根据权利要求3所述的方法,其特征在于,还包括: 动态配置所述粧标记与所述管道标记之间的对应关系,以及,所述管道标记与所述文件标记之间的对应关系。 4. The method according to claim 3, characterized in that, further comprising: a correspondence between the dynamic correspondence between the configuration with the pipe makeup marker tag, and the tag of the file mark conduit relationship.
5.根据权利要求1所述的方法,其特征在于,将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存,包括: 通过所述相匹配的输出管道中的管道缓存对所述跟踪信息进行缓存; 将所述管道缓存中缓存的跟踪信息输出至对应的文件中保存。 5. The method according to claim 1, wherein the tracking information to a corresponding file stored by the output matches the output conduit, comprising: a conduit through which a cache matches the output of the pipeline said tracking information cache; the cache buffer conduit trace information is output to the corresponding save file.
6. 根据权利要求5所述的方法,其特征在于,还包括: 根据设定周期和/或缓存容量阈值,对所述相匹配的输出管道中的管道缓存中缓存的跟踪信息进行清理。 6. The method according to claim 5, characterized in that, further comprising: the set period and / or the buffer capacity threshold, the tracking information to the matching cache pipeline output pipe clean cached.
7. —种信息处理系统,其特征在于,包括: 确定模块,用于确定待跟踪业务; 标记模块,用于对与所述确定的待跟踪业务相匹配的粧函数进行标记;其中,一个确定的相匹配的粧函数对应唯一一个粧标记; 获取模块,用于获取携带有所述桩标记的桩函数输出的跟踪信息; 输出模块,用于将所述跟踪信息通过相匹配的输出管道输出至对应的文件中保存。 7. - information processing system comprising: determining means for determining the service to be tracked; tag module for determining the service to be tracked to match the makeup function markers; wherein determining a It matches the makeup function corresponds to a uniquely labeled makeup; acquiring module, for acquiring the output is a function of carrying the pile of pile marker tracking information; an output module, configured to match the trace information is output to the output conduit corresponding document preservation.
8. 根据权利要求7所述的系统,其特征在于,输出模块,包括: 桩标记确定子模块,用于确定所述跟踪信息对应的桩标记; 管道标记确定子模块,用于确定与所述桩标记相匹配的管道标记; 输出子模块,用于将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出至对应的文件中保存。 8. The system according to claim 7, wherein the output module, comprising: a pile flag determination sub-module, for determining the post mark corresponding tracing information; conduit flag determination sub-module, for determining the pile pipeline tag matches tag; output sub-module, the trace file information for output through the output conduit of the conduit is determined with the labeled marker pile indicated matched to the corresponding saved.
9.根据权利要求8所述的系统,其特征在于,输出子模块,用于确定文件标记;其中,所述文件标记与所述确定的与所述桩标记相匹配的管道标记相对应;以及,将所述跟踪信息通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出;以及,将所述通过所述确定的与所述桩标记相匹配的管道标记所指示的输出管道输出的跟踪信息保存在所述确定的文件标记所指示的文件中保存。 9. The system according to claim 8, characterized in that the output sub-module, for determining a file mark; wherein said duct labeled with the file mark and determining the marker post corresponding matched; and , the trace output pipe output information indicated by the marker determination conduit and the post mark matches; and, through the conduit of the mark and determining the post mark matches indicated trace information output from the output conduit of the determination stored in the file indicated by the file mark saved.
10. 根据权利要求9所述的系统,其特征在于,还包括: 配置模块,用于动态配置所述桩标记与所述管道标记之间的对应关系,以及,所述管道标记与所述文件标记之间的对应关系。 10. The system according to claim 9, characterized in that, further comprising: a configuration module for configuring the dynamic correspondence between the pile and the pipe marker tag, and the tag with the file conduit correspondence between the marks.
11. 根据权利要求7所述的系统,其特征在于,输出模块,用于通过所述相匹配的输出管道中的管道缓存对所述跟踪信息进行缓存;以及,将所述管道缓存中缓存的跟踪信息输出至对应的文件中保存。 11. The system according to claim 7, wherein the output module for outputting through said pipe to match the duct in the trace information cache buffer; and, the cache buffer conduit the corresponding information to the trace file saved.
12. 根据权利要求11所述的系统,其特征在于,还包括: 清理模块,用于根据设定周期和/或缓存容量阈值,对所述相匹配的输出管道中的管道缓存中缓存的跟踪信息进行清理。 12. The system according to claim 11, characterized in that, further comprising: a cleaning module, according to a set period and / or the buffer capacity threshold, trace cache pipeline to the matching output conduit cached information to clean up.
CN201510884433.2A 2015-12-04 2015-12-04 Information processing method and system CN106844169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510884433.2A CN106844169A (en) 2015-12-04 2015-12-04 Information processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510884433.2A CN106844169A (en) 2015-12-04 2015-12-04 Information processing method and system

Publications (1)

Publication Number Publication Date
CN106844169A true CN106844169A (en) 2017-06-13

Family

ID=59150469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510884433.2A CN106844169A (en) 2015-12-04 2015-12-04 Information processing method and system

Country Status (1)

Country Link
CN (1) CN106844169A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731366A (en) * 2004-08-06 2006-02-08 华为技术有限公司 Method of software trace and system therefor
US20090288072A1 (en) * 2008-05-15 2009-11-19 International Business Machines Corporation Automatic Tests of Product Documentation
CN101916226A (en) * 2010-08-31 2010-12-15 山东中创软件商用中间件股份有限公司 Thread information based multi-thread parallelly-executing tracking method
US20110314092A1 (en) * 2010-06-16 2011-12-22 Lunt Eric M Unified collection and distribution of data
CN102460408A (en) * 2009-06-01 2012-05-16 惠普开发有限公司 System and method for collecting application performance data
CN103365716A (en) * 2013-06-25 2013-10-23 华为技术有限公司 Data tracking method and device in business operation task and host machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731366A (en) * 2004-08-06 2006-02-08 华为技术有限公司 Method of software trace and system therefor
US20090288072A1 (en) * 2008-05-15 2009-11-19 International Business Machines Corporation Automatic Tests of Product Documentation
CN102460408A (en) * 2009-06-01 2012-05-16 惠普开发有限公司 System and method for collecting application performance data
US20110314092A1 (en) * 2010-06-16 2011-12-22 Lunt Eric M Unified collection and distribution of data
CN101916226A (en) * 2010-08-31 2010-12-15 山东中创软件商用中间件股份有限公司 Thread information based multi-thread parallelly-executing tracking method
CN103365716A (en) * 2013-06-25 2013-10-23 华为技术有限公司 Data tracking method and device in business operation task and host machine

Similar Documents

Publication Publication Date Title
CN101849399B (en) System and method for rule based content filtering
US20050114854A1 (en) System and method for dynamic cooperative distributed execution of computer tasks without a centralized controller
KR100453824B1 (en) XML based network management system and method for configuration management of heterogeneous network devices
CN104685830B (en) Fault management entities and systems
US20090083714A1 (en) Remote monitoring of local behavior of network applications
US20160112269A1 (en) Identifying configuration inconsistency in edge-based software defined networks (sdn)
CN104253866A (en) Software deployment method and system of virtual network function network element and relevant equipment
US7574713B2 (en) Methods, systems, and computer program products for instantiating a device driver for communication with a device by dynamically associating the device driver at run-time with a device-specific and/or service-specific software component
US20140019597A1 (en) Semi-automatic discovery and generation of useful service blueprints
US20120072903A1 (en) Multi-image migration system and method
CN103532780A (en) Operation and maintenance monitoring integral system and integral monitoring method used in IT (information technology) field
CN101158900B (en) Report generation system and method based on moulding plate series
CN100407663C (en) Universal Test System of a telecommunication service and intelligent method
CN104572043B (en) A method for the control of the client application for real-time embedded devices and point
CN104253831B (en) A method for deploying an application in a cloud computing environment and system for
CN101789888B (en) Detection method and device for software installation
US20100281463A1 (en) XML based scripting framework, and methods of providing automated interactions with remote systems
US9367305B1 (en) Automatic container definition
KR100871636B1 (en) Managing method and apparatus
CN103377127A (en) Development testing system, testing method and device for webpage product
EP3029566A1 (en) Application packaging device and method
CN105574049A (en) Page processing method, device and system of mobile applications
CN102355482B (en) Data transmission method and equipment thereof
CN100570580C (en) Simple network management protocol software test device and test method
CN100498702C (en) Configuring information processing method and arrangement, and platform system

Legal Events

Date Code Title Description
PB01
SE01