Dalvik虛擬機(jī)代碼注入和內(nèi)存追蹤設(shè)計(jì)與實(shí)現(xiàn)
本文選題:云計(jì)算 + Dalvik虛擬機(jī); 參考:《電子科技大學(xué)》2013年碩士論文
【摘要】:隨著無(wú)線網(wǎng)絡(luò)技術(shù)的快速發(fā)展,以智能手機(jī)為代表的各種移動(dòng)終端設(shè)備開(kāi)始大量接入網(wǎng)絡(luò);ヂ(lián)網(wǎng)、3G、無(wú)線寬帶網(wǎng)絡(luò)等多種接入方式呈現(xiàn)出融合發(fā)展的趨勢(shì),網(wǎng)絡(luò)和應(yīng)用無(wú)所不在的"泛在網(wǎng)絡(luò)"時(shí)代已經(jīng)到來(lái)。相對(duì)于其它移動(dòng)設(shè)備,Android手機(jī)的可攜帶性和通信性更強(qiáng),但是由于Android手機(jī)自身硬件的局限性,其計(jì)算能力和存儲(chǔ)能力都很有限。云計(jì)算是一個(gè)虛擬的計(jì)算資源池,它能夠動(dòng)態(tài)布置應(yīng)用程序運(yùn)行環(huán)境,實(shí)時(shí)監(jiān)控應(yīng)用程序資源使用情況,在應(yīng)用程序資源缺少時(shí)分配資源。云計(jì)算其實(shí)是一個(gè)分布式環(huán)境,它并行處理數(shù)據(jù)和服務(wù)并且提供大規(guī)模數(shù)據(jù)存儲(chǔ)區(qū)域,為用戶提供更安全的數(shù)據(jù)存儲(chǔ)、更高效的運(yùn)行效率。如果把"云計(jì)算"運(yùn)用于移動(dòng)計(jì)算領(lǐng)域,運(yùn)用遠(yuǎn)端"云"的高速處理能力,即使手機(jī)本身性能不高,但只要滿足與遠(yuǎn)端"云"的輸入輸出數(shù)據(jù)交換,便能夠得到理想的結(jié)果。但在現(xiàn)有網(wǎng)絡(luò)傳輸帶寬和手機(jī)終端計(jì)算能力有限的情況下,我們必須平衡終端和云端的負(fù)載和運(yùn)算,把部分應(yīng)用程序放到云端執(zhí)行。因此如何分配終端應(yīng)用程序的執(zhí)行以達(dá)到最優(yōu)效率是目前需要迫切解決的問(wèn)題。本論文利用云端的巨大優(yōu)勢(shì)來(lái)減輕本地終端的計(jì)算壓力,將手機(jī)終端的大規(guī)模運(yùn)算移植到云端執(zhí)行以提高應(yīng)用程序的運(yùn)行效率。這種技術(shù)最大的亮點(diǎn)就是使運(yùn)行在應(yīng)用層的部分應(yīng)用程序從移動(dòng)設(shè)備上無(wú)縫地轉(zhuǎn)移到云端運(yùn)行。 本論文利用云端的巨大優(yōu)勢(shì)來(lái)減輕本地終端的計(jì)算壓力,將手機(jī)終端的大規(guī)模運(yùn)算移植到云端執(zhí)行以提高應(yīng)用程序的運(yùn)行效率。這種技術(shù)最大的亮點(diǎn)就是使運(yùn)行在應(yīng)用層的部分應(yīng)用程序從移動(dòng)設(shè)備上無(wú)縫地轉(zhuǎn)移到云端運(yùn)行。 本文以Dalvik虛擬機(jī)中函數(shù)執(zhí)行過(guò)程及內(nèi)存管理技術(shù)為主要研究對(duì)象,深入分析和研究了其中的關(guān)鍵技術(shù),,最終提出一種函數(shù)遷移云端的策略,使得函數(shù)能自動(dòng)地轉(zhuǎn)移到云端執(zhí)行,主要研究?jī)?nèi)容及取得的成果如下: 首先,提出了一個(gè)對(duì)函數(shù)執(zhí)行過(guò)程進(jìn)行改進(jìn)的方案。該方案在Java層、JNI層、Native層增加相應(yīng)的接口和函數(shù),使得函數(shù)一旦運(yùn)行就被轉(zhuǎn)移到云端,而并非通過(guò)Android手機(jī)的底層Dalvik虛擬機(jī)執(zhí)行。 其次,提出了一種針對(duì)函數(shù)內(nèi)存數(shù)據(jù)的分析模式。該模式分析函數(shù)所有相關(guān)的內(nèi)存數(shù)據(jù),如寄存器、函數(shù)棧幀、堆、棧等,對(duì)靜態(tài)域數(shù)據(jù)獲取過(guò)程進(jìn)行優(yōu)化,提出一個(gè)改進(jìn)方法獲取類數(shù)據(jù),對(duì)對(duì)象的引用對(duì)象查找過(guò)程提出一個(gè)優(yōu)化方案。利用該分析模式得到的函數(shù)內(nèi)存數(shù)據(jù)在云端創(chuàng)建新的運(yùn)行環(huán)境,使得函數(shù)能在云端正常運(yùn)行。 通過(guò)Android模擬器和Android開(kāi)發(fā)板實(shí)際測(cè)試表明,將Android手機(jī)的便攜性和云計(jì)算的超強(qiáng)計(jì)算能力結(jié)合起來(lái),將需要大規(guī)模計(jì)算的手機(jī)應(yīng)用程序轉(zhuǎn)移到云端執(zhí)行,執(zhí)行效率提高了至少20倍,人們可以在任何時(shí)間任何地方使用Android手機(jī)方便快捷地訪問(wèn)、獲取和使用云平臺(tái)提供的各種服務(wù),如:前景提取,人臉識(shí)別和圖片濾鏡等。
[Abstract]:With the rapid development of wireless network technology , many kinds of mobile terminal devices , such as Internet , 3G , wireless broadband network , have begun a large number of access networks .
This paper makes use of the huge advantage of cloud to reduce the computing pressure of local terminal , transplant the large - scale operation of mobile terminal to the cloud end to improve the running efficiency of the application program . The biggest advantage of this technology is that some application programs running at the application layer can be seamlessly transferred from the mobile device to the cloud .
This paper takes Dalvik virtual machine as a function execution process and memory management technology as the main research object , deeply analyzes and studies the key technology , and finally proposes a function migration cloud end strategy , so that the function can be automatically transferred to the cloud end , the main research content and the achievement obtained are as follows :
First , an improved solution to the function execution process is proposed . The scheme adds the corresponding interfaces and functions to the Java layer , the JNI layer and the Native layer , so that the function is transferred to the cloud end once the function is run , not through the bottom Dalvik virtual machine of the Android mobile phone .
Secondly , a kind of analysis mode for the function memory data is put forward . All the relevant memory data , such as register , function stack frame , heap , stack and so on , are optimized for the static domain data acquisition process . An improved method is proposed to obtain the class data . A new optimization scheme is proposed for the object ' s reference object searching process . The function memory data obtained by using the analysis mode creates a new operating environment at the cloud end , so that the function can operate normally at the cloud end .
According to the Android simulator and the Android development board actual test , the portability of the Android mobile phone and the super computing power of the cloud computing are combined , and the mobile phone application needing large - scale computing is transferred to the cloud end to execute , the execution efficiency is improved by at least 20 times , and the Android mobile phone can be used for conveniently and quickly accessing , acquiring and using various services provided by the cloud platform , such as foreground extraction , face recognition and picture filter .
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類號(hào)】:TP302
【參考文獻(xiàn)】
相關(guān)期刊論文 前8條
1 陳衛(wèi)伍;王建民;陳榕;;Dalvik在CAR構(gòu)件運(yùn)行時(shí)中的應(yīng)用研究[J];電腦知識(shí)與技術(shù);2010年31期
2 袁占亭,董建設(shè),張秋余,馮濤;內(nèi)存垃圾回收算法探討[J];甘肅工業(yè)大學(xué)學(xué)報(bào);2003年03期
3 戴葵;秦瑩;陳虎;胡守仁;;Java指令集結(jié)構(gòu)的研究[J];計(jì)算機(jī)科學(xué);2000年04期
4 李林華,盛浩,馬世龍;基于寄存器引擎的64位虛擬機(jī)的實(shí)現(xiàn)[J];計(jì)算機(jī)工程;2005年02期
5 吳少剛;鄒國(guó)民;;Dalvik虛擬機(jī)在龍芯平臺(tái)上的移植與實(shí)現(xiàn)[J];計(jì)算機(jī)工程;2011年22期
6 張瑩;李勇平;敖新宇;;基于OpenCV的通用人臉檢測(cè)模塊設(shè)計(jì)[J];計(jì)算機(jī)工程與科學(xué);2011年01期
7 諶寧,覃征;基于嵌入式Java虛擬機(jī)的垃圾回收算法[J];計(jì)算機(jī)應(yīng)用;2005年01期
8 周毅敏;陳榕;;Dalvik虛擬機(jī)進(jìn)程模型分析[J];計(jì)算機(jī)技術(shù)與發(fā)展;2010年02期
相關(guān)碩士學(xué)位論文 前1條
1 施金蘭;基于Android平臺(tái)的網(wǎng)絡(luò)共享研究與實(shí)現(xiàn)[D];華東師范大學(xué);2011年
本文編號(hào):1897853
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1897853.html