转自:http://www.cnblogs.com/imouto/archive/2012/12/11/filtering-adb-logcat-output.html 简介:本文介绍如何在 shell 命令行中过滤 adb logcat 输出的几个小技巧。开发当中经常看到别人的 log 如洪...
分类:
数据库 时间:
2014-12-12 20:50:01
阅读次数:
203
转自:http://my.oschina.net/shaorongjie/blog/105354 可以使用adb shell showmap pid查看一个进程的showmap,这对于我们来说非常有用,可以确定进程中哪些库占用内存比较多。virtual size, RSS,PSS可以参考htt...
分类:
移动开发 时间:
2014-12-12 20:43:14
阅读次数:
138
在android设备中,我们可以通过如下方式获取到设备log:
adb logcat -v time
但是我们通过这种方式得到了很多对我们无用的log。所以我们可以通过如下方式对log进行过滤:
adb logcat -v time -s "TAG"
-S:代表只得到TAG所对应的log。
或者:
adb logcat |grep -v "TAG1" |grep -v "TAG2"
-V:代表在所有log中,不显示TAG1所对应的log。...
分类:
移动开发 时间:
2014-12-12 19:19:15
阅读次数:
153
#!/usr/bin/pythonimportMySQLdbimportpycurldefmaster_work(ip,port):printip,portconn=MySQLdb.connect(host=str(ip),user=‘***‘,passwd=‘****‘,port=int(port))cur=conn.cursor(cursorclass=MySQLdb.cursors.DictCursor)cur.execute(‘showstatus;‘)result=cur.fetchall()#co..
分类:
数据库 时间:
2014-12-12 17:06:30
阅读次数:
241
#!/usr/bin/pythonimportpycurlimportosimportMySQLdbimportcStringIOimportsimplejsonimportredisdeffts_get_appname(host,user,port,db,passwd):conn=MySQLdb.connect(host=str(host),user=user,passwd=passwd,port=int(port),db=db)cur=conn.cursor(cursorclass=MySQLdb.cur..
分类:
其他好文 时间:
2014-12-12 17:05:27
阅读次数:
198
永久root带文件 因为开发需要,我经常会用到adb这个工具(Android Debug Bridge),我们都知道adb shell默认是没有root权限的,修改系统文件就很不方便了,adb push一个文件就提示Permission Denied。删除system下的...
分类:
数据库 时间:
2014-12-12 13:25:12
阅读次数:
251
1. 默认情况下,ADB是通过USB来进行连接的。不需要USB线,直接在android设备上安装一个超级终端,在终端里运行以下代码即可:su setprop service.adb.tcp.port 5555stop adbdstart adbd之后,在PC端打开cmd命令行,输入:adb conn...
分类:
移动开发 时间:
2014-12-12 11:32:00
阅读次数:
183
数据库操作步骤一,添加一个配置文件内容 二,添加引用(可以理解引入一个开发包) 三,获取该连接字符串string connStr = System.Configuration.ConfigurationManager.ConnectionStrings["dbConnStr"].Connect...
分类:
数据库 时间:
2014-12-12 10:06:29
阅读次数:
259
1、adb logcat --打印当前设备上所有日志2、adb logcat | findstr *** --过滤仅含***的日志3、adb logcat *:W --过滤打印严重级别W及以上的日志4、adb logcat | findstr *** > F:\lo...
分类:
数据库 时间:
2014-12-12 10:00:10
阅读次数:
198
Socket 构造1.Socket() 设定等待连接超时时间 Socket socket=new Socket(); SocketAddress remoteAddr=new InetSocketAddress("host",80); socket.connect(remoteAddr,60000)...
分类:
其他好文 时间:
2014-12-12 01:20:06
阅读次数:
155