一般我们在开发程序时,只管alloc,不需要管release,因为有ARC帮我们管理。但是在学习时仍需要了解:内存是有限的,在堆区分配了内存后,如果不需要,则要回收,不然内存不够引起崩溃。...
分类:
其他好文 时间:
2014-09-03 19:52:47
阅读次数:
229
方法一:
假设要内置的软件名称为iperf.exe
1. 将iperf.exe放到Codebase的任意一个目录下(该目录必须能够在搜索Android.mk时被搜索到),比如system/iperf/iperf.exe
2. 在system/iperf目录下添加一个Android.mk文件,内容如下:
LOCAL_PATH:= $(call my-dir)
PRODUCT_COPY_F...
分类:
移动开发 时间:
2014-09-03 13:06:46
阅读次数:
253
@synthesize关键字: 根据@property设置,自动生成成员变量相应的存取方法,从而可以使用点操作符来方便的存取该成员变量 。@implementation 关键字,表明类的实现 @end 结束self 关键字 :类似于java中的this,是隐藏参数,指向当前调用方法的类。super ...
分类:
移动开发 时间:
2014-09-03 12:33:06
阅读次数:
302
objective-c中用NSString的有关注意事项:一:声明NSString类型的属性格式//属性声明为copy,是为传入的参数若是NSMutableString类型的数据做copy处理,使外界参数的改变不影响属性的值。1 @property (nonatomic,copy) NSString...
分类:
移动开发 时间:
2014-09-03 11:10:56
阅读次数:
248
Copy from :http://nijiaben.iteye.com/blog/1847212 在启动和运行期都可以加载agent代理,在启动的时候可通过-javaagent参数来执行agent代理,而在运行期就是通过attach这种机制动态load了。 如果在vm启动过程中加载agent,那....
分类:
编程语言 时间:
2014-09-03 09:36:46
阅读次数:
528
Five ways for tracing Java executionI'm often faced with a situation where I need to dig into code that I didn't write. Most of it is poorly documente...
分类:
编程语言 时间:
2014-09-03 09:31:16
阅读次数:
390
浅谈html各常用标签用法 标题标签:<h1>-<h6>来表示,使标题字体变粗。 <br />换行标记 <hr />水平分隔符  空格符 ©版权符 <a href>a标签超链接 href可接链接地址 <p>段落标签<blockquote>引用标签及可用...
分类:
Web程序 时间:
2014-09-02 23:00:57
阅读次数:
457
With a system running 24/7, you have to make sure that it performs well at any time of the day. Several commercial solutions exist to monitor the perf...
分类:
编程语言 时间:
2014-09-02 21:08:15
阅读次数:
338