Resource transfer analysis method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of resource transfer analysis method and device.
Background technology
With the continuous development of terminal unit (such as smart mobile phone etc.), what is occurred in needing the system to terminal unit is each
The problem of kind is analyzed and processes.For the analysis of system problem (such as memory overflow etc.) is typically using artificial in correlation technique
The mode such as code inspection and the examination of third party's instrument.The examination of artificial code inspection is less efficient, and third party's instrument examines right
In the compatible poor of some systems (such as ARIXTRA android system), there are problems that loading velocity it is slow,.
For example when carrying out Memory leakage detection for Android system, in conventional third party's instrument, instrument valgrind
After (the Memory leakage detection instrument under linux platforms) is applied to android system, App (application program) loading velocity is special
It is not slow, and the control due to Android operation system to process is different from Linux, and the examining report of valgrind is not easy
Control, and there is the leakage of more wrong report;Instrument LeakTrace needs in code, call which to provide manually memory analysis
API (application programming interface), need to recompilate, pack, dispose after could use, use and bother very much, and
And there is ABI (application binaries interface) compatibling problem.
The content of the invention
In view of this, the present disclosure proposes a kind of resource transfer analysis method and device, so as to rapidly and accurately to system
The situation of calling of resource is analyzed.
According to the one side of the disclosure, there is provided a kind of resource transfer analysis method, methods described include:Obtain for money
The call operation in source;In the case where the call operation is got, judge whether the call operation meets analysis condition;
In the case that the call operation meets analysis condition, the recalls information corresponding with the call operation is analyzed and records;
In the case of meeting information output condition, recorded recalls information is exported.
For said method, in a kind of possible implementation, methods described also includes:Deposit in the first memory space
The storage thread identification corresponding with the call operation for obtaining, and it is corresponding with the call operation for currently carrying out with the first labelling pair
Thread identification be marked.
For said method, in a kind of possible implementation, in the case where the call operation is got, judge
Whether the call operation meets analysis condition, including:Whether inquire about has in first memory space and the tune for currently obtaining
With the corresponding, thread identification that is being labeled as first labelling of operation;Do not have in first memory space and currently obtain
The call operation that takes it is corresponding, in the case of thread identification being labeled as first labelling, judge that the call operation is full
Sufficient analysis condition.
For said method, in a kind of possible implementation, the situation of analysis condition is met in the call operation
Under, the recalls information corresponding with the call operation is analyzed and records, including:It is to apply for the tune of resource in the call operation
With in the case of, the recalls information corresponding with the call operation is stored in the second memory space;In the call operation
Be discharge the calling of resource in the case of, delete from second memory space and corresponding with the call operation call letter
Breath.
For said method, in a kind of possible implementation, in the case where information output condition is met, institute is exported
The recalls information of record, including:Monitor whether there is recalls information output order;In the situation that there is recalls information output order
Under, it is judged as meeting information output condition;In the case where information output condition is met, read from second memory space
And export stored recalls information.
For said method, in a kind of possible implementation, the call operation for resource is obtained, including:Kidnap
For the call operation of application programming interface API.
According to another aspect of the present disclosure, there is provided a kind of resource transfer analytical equipment, described device include:
Acquisition module, for obtaining the call operation for resource;
Judge module, in the case where the call operation is got, judging whether the call operation meets point
Analysis condition;
Analysis logging modle, in the case of meeting analysis condition in the call operation, analyze and record with it is described
The corresponding recalls information of call operation;
Output module, in the case where information output condition is met, exporting recorded recalls information.
For said apparatus, in a kind of possible implementation, described device also includes:
Mark memory module, for the thread mark corresponding with the call operation for obtaining is stored in the first memory space
Know, and be marked with the first labelling pair thread identification corresponding with the call operation for currently carrying out.
For said apparatus, in a kind of possible implementation, the judge module includes:
Mark inquiry submodule, for inquiring about the call operation phase for whether having in first memory space and currently obtaining
Thread identification that is corresponding, being labeled as first labelling;
First judging submodule, for no corresponding with the current call operation for obtaining in first memory space
, in the case of thread identification being labeled as first labelling, judge that the call operation meets analysis condition.
For said apparatus, in a kind of possible implementation, the analysis logging modle includes:
First analysis submodule, in the case of being to apply for the calling of resource in the call operation, in the second storage
The recalls information corresponding with the call operation is stored in space;
Second analysis submodule, in the case of being to discharge the calling of resource in the call operation, from described second
The recalls information corresponding with the call operation is deleted in memory space.
For said apparatus, in a kind of possible implementation, the output module includes:
Command monitoring submodule, for monitoring whether to there is recalls information output order;
Second judging submodule, in the case where there is recalls information output order, being judged as meeting information output
Condition;
First output sub-module, in the case where information output condition is met, reading from second memory space
Take and export stored recalls information.
For said apparatus, in a kind of possible implementation, the acquisition module includes:
Submodule is kidnapped, for kidnapping the call operation for application programming interface API.
According to another aspect of the present disclosure, there is provided a kind of resource transfer analytical equipment, described device include:
Processor;For storing the memorizer of processor executable;
Wherein, the processor is configured to:Obtain the call operation for resource;Getting the call operation
In the case of, judge whether the call operation meets analysis condition;In the case where the call operation meets analysis condition, point
Analyse and record the recalls information corresponding with the call operation;In the case where information output condition is met, output is recorded
Recalls information.
According to another aspect of the present disclosure, there is provided a kind of non-volatile computer readable storage medium storing program for executing, when the storage
Instruction in medium by terminal and/or server computing device when so that terminal and/or server are able to carry out a kind of money
Analysis method, methods described is called to include in source:Obtain the call operation for resource;In the situation for getting the call operation
Under, judge whether the call operation meets analysis condition;In the case where the call operation meets analysis condition, analysis is simultaneously
The record recalls information corresponding with the call operation;In the case where information output condition is met, recorded tune is exported
Use information.
According to the resource transfer analysis method and device of the embodiment of the present disclosure, the call operation for resource can be obtained,
The recalls information corresponding with the call operation for meeting analysis condition is analyzed and recorded, and exports recorded recalls information, from
And efficiently and accurately analysis system resource calls situation.
According to below with reference to the accompanying drawings, to detailed description of illustrative embodiments, the further feature and aspect of the disclosure will become
It is clear.
Description of the drawings
Comprising in the description and accompanying drawing and the description of the part that constitutes description together illustrates the present invention's
Exemplary embodiment, feature and aspect, and for explaining the principle of the present invention.
Fig. 1 is a kind of flow chart of the resource transfer analysis method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the resource transfer analysis method according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of the resource transfer analysis method according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of the resource transfer analysis method according to an exemplary embodiment.
The flow chart of the step of Fig. 5 is a kind of resource transfer analysis method according to an exemplary embodiment 13.
The flow chart of the step of Fig. 6 is a kind of resource transfer analysis method according to an exemplary embodiment 14.
Fig. 7 is a kind of block diagram of the resource transfer analytical equipment according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of the resource transfer analytical equipment according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the resource transfer analytical equipment according to an exemplary embodiment.
Figure 10 is a kind of block diagram of the resource transfer analytical equipment according to an exemplary embodiment.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to accompanying drawing.It is identical in accompanying drawing
Reference represent the same or analogous element of function.Although the various aspects of embodiment are shown in the drawings, remove
Non-specifically is pointed out, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " means " being used as example, embodiment or illustrative " here.Here as " exemplary "
Illustrated any embodiment is should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details are given in specific embodiment below.
It will be appreciated by those skilled in the art that not having some details, the disclosure can equally be implemented.In some instances, for
Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight the purport of the disclosure.
Embodiment 1
Fig. 1 is a kind of flow chart of the resource transfer analysis method according to an exemplary embodiment.The method can be answered
For in terminal unit (such as smart mobile phone) or server.As shown in figure 1, being analyzed according to the resource transfer of the embodiment of the present disclosure
Method includes:
Step S11, obtains the call operation for resource;
Step S12, in the case where the call operation is got, judges whether the call operation meets analysis bar
Part;
Step S13, in the case where the call operation meets analysis condition, analyzes and records and the call operation phase
Corresponding recalls information;
Step S14, in the case where information output condition is met, exports recorded recalls information.
The call operation for resource can be obtained in accordance with an embodiment of the present disclosure, analyzed and recorded and meet analysis condition
The corresponding recalls information of call operation, and export recorded recalls information, so as to efficiently and accurately analysis system resource
Call situation.
For example, in the operating system of terminal unit, application program App needs calling system resource (example when running
Such as memory headroom), such as application system resource is needed during startup optimization, terminates free system resources to be needed during operation, these mistakes
Application programming interface API in calling system storehouse is needed in journey.In resource transfer analysis, can obtain for resource
Call operation, such as, in Android system, can kidnap the local layer identification code (Android of ARIXTRA by way of symbol abduction
Native code) to libc storehouses provide API call operation, to obtain the call operation.Tool of the disclosure to call operation
Body acquisition modes are not limited.
In a kind of possible implementation, when call operation is got, it is understood that there may be acquired call operation is not
It is the situation of call operation to be analyzed, for example, self kidnapping for often occurring in symbol abduction mode (has kidnapped symbol misfortune
Hold the resource transfer operation of operation itself), so as to cause the result of resource transfer analysis inaccurate.Thus, in order to avoid this
Situation occurs, it can be determined that whether acquired call operation meets analysis condition.If being unsatisfactory for analysis condition, do not analyze
The call operation, continues to obtain;If meeting analysis condition, the call operation is analyzed, and will be corresponding with the call operation
Recalls information record in the memory headroom of system, call stack in recalls information, resource are for example recorded in the way of mapping
Descriptor etc..
In a kind of possible implementation, if meeting information output condition, for example, default actual conditions is reached
(app end of runs etc.), or user input information output instruction, then export recorded recalls information.Can for example from upper
Recorded recalls information is obtained in the system memory space stated, readable file such as journal file is converted into, for user
Check and/or be further processed.
Fig. 2 is a kind of flow chart of the resource transfer analysis method according to an exemplary embodiment.As shown in Fig. 2
In a kind of possible implementation, step S11 includes:
Step S111, kidnaps the call operation for application programming interface API.
For example, local layer identification code when applying or discharge resource can the API that provides of calling system storehouse, can using with
Third party's instrument valgrind similar modes, kidnap the API that local layer identification code is provided to system library by way of symbol abduction
Call operation, to obtain the call operation.For example, in Android system, independent so storehouse can be set up
Libleaktest.so, does not do any change to the source code of tested App.It is when app to be tested starts, preferential to load
Libleaktest.so storehouses are to internal memory, it is possible to use the symbol of LD_PRELOAD types is kidnapped mode and kidnaps the local layer identification code of ARIXTRA
The call operation of the API provided by libc storehouses.Mode can also be kidnapped using other kinds of symbol and kidnap call operation, this public affairs
Open and this is not restricted.
In this way, can be in the case where the source code of tested App not to be changed, abduction calls behaviour for API's
Make, improve the acquisition efficiency of call operation.
Fig. 3 is a kind of flow chart of the resource transfer analysis method according to an exemplary embodiment.As shown in figure 3,
In a kind of possible implementation, methods described also includes:
Step 15, stores the thread identification corresponding with the call operation for obtaining in the first memory space, and with the
The one labelling pair thread identification corresponding with the call operation for currently carrying out is marked.
For example, the first memory space, first memory space can be created when libleaktest.so storehouses start
It can be the memory space of static bitmap (bitmap), or other storage forms.When obtaining call operation every time, can
So that the thread identification (such as Thread Id) of the call operation for obtaining corresponding thread is stored in first memory space, and
The thread is marked, for example, is labeled as 1 (the first labelling).For example, when first memory space includes bitmap, position can be used
In figure, the value of each to be representing whether the corresponding thread of thread identification is doing the operation of corresponding API Calls, and ongoing
The corresponding thread of call operation can be expressed as 1 in bitmap, and the thread for not currently being called operation can be in bitmap
It is expressed as 0 (the second labelling).Correspondingly, at the end of the call operation for currently carrying out, the first mark that its respective thread can be identified
Note is changed to the second labelling, for example, become 0 by 1.
In this way, the thread for being called operation can be marked, it is to avoid duplicate acquisition or
Obtain situation about omitting.
Fig. 4 is a kind of flow chart of the resource transfer analysis method according to an exemplary embodiment.As shown in figure 4,
In a kind of possible implementation, step 12 includes:
Whether step 121, inquiring about has corresponding with the call operation for currently obtaining, labelling in first memory space
For the thread identification of the first labelling;
Step 122, in first memory space without it is not corresponding with the current call operation for obtaining, be labeled as institute
In the case of stating the thread identification of the first labelling, judge that the call operation meets analysis condition.
For example, when call operation is got, it is understood that there may be acquired call operation is not to be analyzed calling
The situation of operation, for example, self kidnapping for often occurring in symbol abduction mode (has been kidnapped symbol abduction and has operated the money of itself
Source call operation), so as to cause the result of resource transfer analysis inaccurate.Therefore, it is possible to judge whether the call operation is full
Sufficient analysis condition.
In order to avoid repeating to obtain (such as self is kidnapped), correlation technique is generally using the call operation addition mark to obtaining
The mode of will, for example, after abduction, mark is set to true, is no longer kidnapped after coming in next time if flag bit is true.But the party
Case can cause to miss that some should kidnap calls, and asynchronous the entering of such as multiple threads is kidnapped, if a thread is mark
Will is set to true, then other threads should kidnap call and will not be held as a hostage, cause obtain omit.
In a kind of possible implementation, as it was previously stated, when libleaktest.so storehouses start, storage can be created
There is the first memory space of the thread identification corresponding with the call operation for obtaining, and to being called the thread of operation
It is marked with the first labelling (such as 1).When getting call operation and for example kidnapping related API, the first storage of inquiry is empty
Between in whether have it is corresponding with the call operation for currently obtaining, and be labeled as thread identification ID of the first labelling, for example, bitmap
In the value of the corresponding position of the thread identification be 1, if it has, then illustrate current call operation for obtaining to repeat to obtain, the tune
With operation from leaktest.so itself, it should directly let pass, be not analyzed;If the not current call operation for obtaining
Corresponding, Thread Id that is being labeled as the first labelling, then illustrate that current call operation for obtaining comes from local layer identification code
(native code), meets analysis condition, needs to be analyzed.If there is no being somebody's turn to do for current acquisition in the first memory space
Corresponding thread identification ID of call operation, then be considered as and be unsatisfactory for analysis condition, and thread identification ID can be added to first
In memory space and the first mark is labeled as, prevents calling for follow-up leaktest.so storehouses itself to be also held as a hostage.Meet analysis
During condition, current call operation for obtaining can be analyzed and be recorded, after completing to analyze and record, this can be adjusted
With operating corresponding thread identification the second labelling to be changed to by the first labelling, for example, be changed into 0 from 1.
In this way, can avoid repeating to obtain or obtain to omit, that improves system resource calls the accurate of analysis
Property.
The flow chart of the step of Fig. 5 is a kind of resource transfer analysis method according to an exemplary embodiment 13.Such as
Shown in Fig. 5, in a kind of possible implementation, step 13 includes:
Step S131, in the case of being to apply for the calling of resource in the call operation, stores in the second memory space
The recalls information corresponding with the call operation;
Step S133, in the case of being to discharge the calling of resource in the call operation, from second memory space
Delete the recalls information corresponding with the call operation.
For example, when call operation meets analysis condition, the type of the call operation can be analyzed and is processed.
If the call operation is the API for applying for resource calls (such as malloc, socket in the API of Android system etc.),
The corresponding recalls information of the call operation can be saved in the second memory space.The recalls information can include the tune
With the corresponding Thread Ids of API of operation, call stack, resource descriptor etc.;Second memory space can be resource descriptor
For keyword (pointer address), Hash mapping (map) of the call stack for value (content).
In a kind of possible implementation, if the call operation is API Calls (such as Android system for discharging resource
API in free, close etc.), then can search in the second memory space and delete corresponding with call operation calling
Information, for example, searches resource descriptor corresponding with call operation, and by the key-value pair for finding (keyword and value) from mapping
Middle deletion.
In a kind of possible implementation, it should be noted that above-mentioned analysis record operation can be independent
Carry out in such as libleaktest.so of storehouse, it is not necessary to which any change is done to the source code of tested App.In such as Android system
In API, obtain (symbol abduction) to call operation relate generally to malloc, calloc, free, fopen, fclose,
The storehouses such as socket, eventpoll, close, pthread_create, pthread_detach, pthread_join.
In this way, the tune for calling and deleting release resource of application resource can be stored in the second memory space
With efficiently and accurately record system resource calls situation.
The flow chart of the step of Fig. 6 is a kind of resource transfer analysis method according to an exemplary embodiment 14.Such as
Shown in Fig. 6, in a kind of possible implementation, step 14 includes:
Step 141, monitors whether there is recalls information output order;
Step 142, in the case where there is recalls information output order, is judged as meeting information output condition;
Step 143, in the case where information output condition is met, from second memory space reads and exports and deposited
The recalls information of storage.
For example, in the case where recalls information has been recorded, recorded recalls information can be exported.But at some
In system, it is impossible to export recorded recalls information, such as in Android system, Android in a manner readable in real time
The API for obtaining call stack, including unwind_backtrace and get_backtrace_ are provided in libcorkscrew storehouses
symbols.Wherein unwind_bakctrace can obtain the pointer address of current call stack, get_backtrace_
Symbols is mapped by the mapping map files of acquisition process and to pointer address, is converted into readable call stack.
But, finding during actually used, get_backtrace_symbols performs slowly, if robbed every time
All call get_backtrace_symbols have a strong impact on the App speeds of service after holding.Therefore, it is possible in the second memory space
The middle storage recalls information corresponding with the call operation, by the way of Delay Mapping (backtrace), that is, needing
Pointer address (such as keyword) is mapped to into readable text again when exporting analysis daily record.
In a kind of possible implementation, can in loading (such as load libleaktest.so storehouses) automatic
Watcher thread, the order line terminal (the terminal modules of such as smart mobile phone) of monitoring terminal equipment is with the presence or absence of recalls information
Output order, wherein, the recalls information output order can be expressed as "/sdcard/LeakTest/dr ".The watcher thread can
Whether there is with continuing to monitor such as "/sdcard/LeakTest/dr " file, if there is no this document, then can continue prison
Survey;If there is this document, then may determine that to meet information output condition.
In a kind of possible implementation, in the case where information output condition is met, can be from the described second storage
Stored recalls information is read and is exported in space.For example in Android system, can be incited somebody to action by calling journal output module
Daily record logcat is arrived in testing result (recalls information for being stored) output in second memory space (mapping), and user can pass through
Filter the testing result that LeakTest keywords capture memory overflow from logcat bufferings.Can also be using other modes by the
The recalls information stored by two memory spaces reads and is output as readable text, and the disclosure is not limited to this.
In a kind of possible implementation, Android system is carried out resource transfer analyze when, due to Android it is special
Process flowchart mechanism, when exiting App, the enough functions of the analysis of local (Native) global data can't be called, and this leads to not
Realization exports automatically examining report when App is exited, and this is also that current valgrind instruments can not be efficiently applied to Android
The major reason of operation.And the process of memory leak detecting sometimes itself need not and exit app, simply detect one or
Either with or without RAM leakage, this requires that we at any time can controlled output testing result to multiple scenes.Therefore, using the defeated of the disclosure
Go out mode, can by the control that daily record is exported be converted to user it is right/control of sdcard/LeakTest/dr files, when user runs
Complete test analysis step, as long as by performing touch/sdcard/LeakTest/dr in terminal when wanting to check testing result
The output of result, the control of very convenient user are capable of achieving.
Following present a kind of possible application scenarios of the resource transfer analysis method of the disclosure.For ARIXTRA local layer
Code (Android native code), can set up independent so storehouses libleaktest.so.Treat in Android terminal
Survey app to be configured, for example:Setprop wrap.packet.name " LD_PRELOAD=/path/to/
leaktest.so”.Then, start App to be tested to be tested.It is when App to be tested starts, preferential to load
Mode is kidnapped using the symbol of LD_PRELOAD types and kidnaps the local layer identification code pair of ARIXTRA to internal memory in libleaktest.so storehouses
The call operation of the API that libc storehouses provide, it is keyword to be stored as resource descriptor, and call stack is the Hash mapping (map) of value.
When output result is needed, touch/sdcard/LeakTest/dr orders are performed in Android terminal.Then, pass through
Logcat obtains daily record:logcat|grep LeakTest.
In this way, stored recalls information can be exported when information output condition is met, improves output
Convenience and accuracy.
Rapidly and accurately the situation of calling of system resource can be carried out point according to the resource transfer analysis method of the disclosure
Analysis, and any change need not be done to being detected source code;Compared with existing memory testing tool, when significantly reducing loading
Between, run time and rate of false alarm;The memory overflow of Android operation system Native code, thread can easily be analyzed to let out
The problems such as dew, the product quality of android system is ensured.
Embodiment 2
Fig. 7 is a kind of block diagram of the resource transfer analytical equipment according to an exemplary embodiment.As shown in fig. 7, should
Resource transfer analytical equipment includes:Behavior acquisition module 71, judge module 72, analysis logging modle 73 and output module 74.
Acquisition module 71, for obtaining the call operation for resource;
Judge module 72, in the case where the call operation is got, judging whether the call operation meets
Analysis condition;
Analysis logging modle 73, in the case of meeting analysis condition in the call operation, analyzes and records and institute
State the corresponding recalls information of call operation;
Output module 74, in the case where information output condition is met, exporting recorded recalls information.
Fig. 8 is a kind of block diagram of the resource transfer analytical equipment according to an exemplary embodiment.As shown in figure 8,
In a kind of possible implementation, described device also includes:
Mark memory module 75, for the thread corresponding with the call operation for obtaining is stored in the first memory space
Mark, and be marked with the first labelling pair thread identification corresponding with the call operation for currently carrying out.
As shown in figure 8, in a kind of possible implementation, the judge module 72 includes:
Mark inquiry submodule 721, for inquire about whether have in first memory space with currently obtain call behaviour
Make corresponding, thread identification that is being labeled as first labelling;
First judging submodule 722, for no call operation phase with current acquisition in first memory space
In the case of thread identification that is corresponding, being labeled as first labelling, judge that the call operation meets analysis condition.
As shown in figure 8, in a kind of possible implementation, the analysis logging modle 73 includes:
First analysis submodule 731, in the case of being to apply for the calling of resource in the call operation, deposits second
Storage stores the recalls information corresponding with the call operation in space;
Second analysis submodule 732, in the case of being to discharge the calling of resource in the call operation, from described the
The recalls information corresponding with the call operation is deleted in two memory spaces.
As shown in figure 8, in a kind of possible implementation, the output module 74 includes:
Command monitoring submodule 741, for monitoring whether to there is recalls information output order;
Second judging submodule 742, it is defeated in the case where there is recalls information output order, being judged as meeting information
Go out condition;
First output sub-module 743, in the case where information output condition is met, from second memory space
Read and export stored recalls information.
As shown in figure 8, in a kind of possible implementation, the acquisition module 71 includes:
Submodule 711 is kidnapped, for kidnapping the call operation for application programming interface API.
The call operation for resource can be obtained in accordance with an embodiment of the present disclosure, analyzed and recorded and meet analysis condition
The corresponding recalls information of call operation, and export recorded recalls information, so as to efficiently and accurately analysis system resource
Call situation.
Embodiment 3
Fig. 9 is a kind of block diagram of the resource transfer analytical equipment 800 according to an exemplary embodiment.For example, device
800 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment set
It is standby, body-building equipment, personal digital assistant etc..
With reference to Fig. 9, device 800 can include following one or more assemblies:Process assembly 802, memorizer 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
The integrated operation of 802 usual control device 800 of process assembly, such as with display, call, data communication, phase
Machine operates and records the associated operation of operation.Process assembly 802 can refer to perform including one or more processors 820
Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or more modules, just
Interaction between process assembly 802 and other assemblies.For example, process assembly 802 can include multi-media module, many to facilitate
Interaction between media component 808 and process assembly 802.
Memorizer 804 is configured to store various types of data to support the operation in device 800.These data are shown
Example includes the instruction of any application program or method for operating on device 800, and contact data, telephone book data disappear
Breath, picture, video etc..Memorizer 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile
Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system
System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and the touch or slide related persistent period and pressure.In certain embodiments, many matchmakers
Body component 808 includes a front-facing camera and/or post-positioned pick-up head.When device 800 be in operator scheme, such as screening-mode or
During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and
Post-positioned pick-up head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 is in operator scheme, such as call model, logging mode and speech recognition mode, mike is matched somebody with somebody
It is set to reception external audio signal.The audio signal for being received can be further stored in memorizer 804 or via communication set
Part 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a speaker, for exports audio signal.
, for interface is provided between process assembly 802 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 812
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for various aspects are provided for device 800 is commented
Estimate.For example, sensor cluster 814 can detect the opening/closed mode of device 800, and the relative localization of component is for example described
Display and keypad of the component for device 800, sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, user is presence or absence of with what device 800 was contacted, 800 orientation of device or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect when not having any physical contact
The presence of object nearby.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement
In example, communication component 816 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realizations, for performing said method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing including instruction, example are additionally provided
Such as include the memorizer 804 of instruction, above-mentioned instruction can be performed to complete said method by the processor 820 of device 800.
Figure 10 is a kind of block diagram of the resource transfer analytical equipment 1900 according to an exemplary embodiment.For example, fill
Put 1900 and may be provided in a server.With reference to Figure 10, device 1900 includes process assembly 1922, and which further includes one
Or multiple processors, and the memory resource by representated by memorizer 1932, can holding by process assembly 1922 for storage
Capable instruction, such as application program.The application program stored in memorizer 1932 can include one or more each
The individual module for corresponding to one group of instruction.Additionally, process assembly 1922 is configured to execute instruction, to perform said method.
Device 1900 can also include that power supply module 1926 be configured to the power management of performs device 1900, one
Wired or wireless network interface 1950 is configured to for device 1900 to be connected to network, and input and output (I/O) interface
1958.Device 1900 can be operated based on the operating system for being stored in memorizer 1932, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing including instruction, example are additionally provided
Such as include the memorizer 1932 of instruction, above-mentioned instruction can be performed to complete said method by the process assembly 1922 of device 1900.
The present invention can be system, method and/or computer program.Computer program can include computer
Readable storage medium storing program for executing, containing the computer-readable program instructions for being used to make processor realize various aspects of the invention.
Computer-readable recording medium can be to keep and store by the tangible of the instruction for instructing execution equipment to use
Equipment.Computer-readable recording medium can for example be-- but be not limited to-- storage device electric, magnetic storage apparatus, optical storage
Equipment, electromagnetism storage device, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer-readable recording medium
More specifically example (non exhaustive list) includes:Portable computer diskette, hard disk, random access memory (RAM), read-only deposit
It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static RAM (SRAM), portable
Compact disk read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon
Be stored with instruction punch card or groove internal projection structure and above-mentioned any appropriate combination.Calculating used herein above
Machine readable storage medium storing program for executing is not construed as instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations, logical
Cross the electromagnetic wave (for example, by the light pulse of fiber optic cables) of waveguide or other transmission mediums propagation or pass through wire transfer
The signal of telecommunication.
Computer-readable program instructions as described herein can from computer-readable recording medium download to each calculate/
Processing equipment, or outer computer or outer is downloaded to by network, such as the Internet, LAN, wide area network and/or wireless network
Portion's storage device.Network can include copper transmission cable, fiber-optic transfer, be wirelessly transferred, router, fire wall, switch, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment is received from network and is counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
For perform the present invention operation computer program instructions can be assembly instruction, instruction set architecture (ISA) instruction,
Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming language
Source code or object code that combination in any is write, the programming language include OO programming language-such as
Smalltalk, C++ etc., and the procedural programming languages of routine-such as " C " language or similar programming language.Computer
Readable program instructions fully can be performed on the user computer, partly perform on the user computer, as one solely
Vertical software kit is performed, part performs on the remote computer or completely in remote computer on the user computer for part
Or perform on server.In the situation of remote computer is related to, remote computer can be by the network-bag of any kind
LAN (LAN) or wide area network (WAN)-be connected to subscriber computer are included, or, it may be connected to outer computer (such as profit
With ISP come by Internet connection).In certain embodiments, by using computer-readable program instructions
Status information carry out personalized customization electronic circuit, such as Programmable Logic Device, field programmable gate array (FPGA) or can
Programmed logic array (PLA) (PLA), the electronic circuit can perform computer-readable program instructions, so as to realize each side of the present invention
Face.
Referring herein to method according to embodiments of the present invention, device (system) and computer program flow chart and/
Or block diagram describes various aspects of the invention.It should be appreciated that each square frame and flow chart of flow chart and/or block diagram and/
Or in block diagram each square frame combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special-purpose computer or other programmable datas
The processor of processing meanss, so as to produce a kind of machine so that these instructions are by computer or other programmable datas
During the computing device of processing meanss, flowchart is generated and/or work(specified in one or more square frames in block diagram
The device of energy/action.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to
Order causes computer, programmable data processing unit and/or other equipment to work in a specific way, so as to be stored with instruction
Computer-readable medium then includes a manufacture, during which includes flowchart and/or one or more square frames in block diagram
The instruction of the various aspects of the function/action of regulation.
Can also computer-readable program instructions be loaded into computer, other programmable data processing units or other
On equipment so that perform series of operation steps on computer, other programmable data processing units or miscellaneous equipment, to produce
The computer implemented process of life, so that perform on computer, other programmable data processing units or miscellaneous equipment
Function/action specified in one or more square frames in instruction flowchart and/or block diagram.
Flow chart and block diagram in accompanying drawing shows system, method and the computer journey of multiple embodiments of the invention
The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation
A part for table one module, program segment or instruction, a part for the module, program segment or instruction are used comprising one or more
In the executable instruction of the logic function for realizing regulation.In some realizations as replacement, the function of being marked in square frame
Can occur with the order different from being marked in accompanying drawing.For example, two continuous square frames can essentially be held substantially in parallel
OK, they can also be performed sometimes in the opposite order, and this is depending on involved function.It is also noted that block diagram and/or
The combination of each square frame and block diagram and/or the square frame in flow chart in flow chart, can use the function or dynamic of performing regulation
The special hardware based system made is realizing, or can be realized with the combination of specialized hardware and computer instruction.
It is described above various embodiments of the present invention, described above is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.In the case of the scope and spirit without departing from illustrated each embodiment, for this skill
For the those of ordinary skill in art field, many modifications and changes will be apparent from.The selection of term used herein, purport
Best explaining principle, practical application or the technological improvement to the technology in market of each embodiment, or lead this technology
Other those of ordinary skill in domain are understood that each embodiment disclosed herein.