SystemTap脚本主要是由探测点和探测点处理函数组成的,来看下都有哪些探测点可用。
The essential idea behind a systemtap script is to name events, and to give them handlers.
Systemtap works by translating the script to C, running the system C compiler to create a kernel module from that.
When t...
分类:
其他好文 时间:
2014-06-07 01:59:08
阅读次数:
369
运行效果:
方法一
public void openDialog(View v) {
// 打开一个对话框
// 构建者对象
AlertDialog.Builder builder = new Builder(this);
// 构建者创建一个对话框
AlertDialog alertDialog = builder.create();
// 设置对话框的标题
...
分类:
移动开发 时间:
2014-06-07 01:14:00
阅读次数:
252
1 初始添加设备后、上传Object的具体流程
前几篇博客中,我们讲到环的基本原理即具体的实现过程,加入我们在初始创建Ring是执行如下几条命令:
?swift-ring-builder object.builder create 5 3 1
?swift-ring-builder object.builder add z1-127.0.0.1:6010/sdb1 100...
分类:
其他好文 时间:
2014-06-05 12:40:26
阅读次数:
316
——积累工作中用到的SQLORACLE中也是有类型的,可作为存储过程,函数等的输入输入出。下面看下创建。用法CREATE OR REPLACE TYPE 类型名称 AS OBJECT( 字段1 类型, 字段2 类型, 字段3 类型)例如CREATE OR REPLACE TYPE T_OBJ AS OBJECT( T_ID ...
分类:
数据库 时间:
2014-06-05 12:00:14
阅读次数:
357
一直没有认真觉察UPDATE操作的锁,最近在MSDN上看到一个问题,询问堆表更新的死锁问题,问题很简单,有类似这样的表及数据:CREATE TABLE dbo.tb( c1 int, c2 char(10), c3 varchar(10));GODECLARE @id int;SET @id = 0;WHILE @id 5BEGIN; SET...
分类:
其他好文 时间:
2014-06-05 10:24:32
阅读次数:
271
需求是这样的:系统中会有很多的执行时间,三个或者四个这样,不确定,以后可能是五个!当用户在页面添加执行时间时,我们后台也要对应执行用户添加的时间。
数据库设计:
DROP TABLE IF EXISTS `test_time_task`;
CREATE TABLE `test_time_task` (
`status` int(11) DEFAULT NULL COMMENT '状态:0为...
分类:
编程语言 时间:
2014-06-05 10:00:30
阅读次数:
245
Managing the Activity Lifecycle
GET
STARTED
DEPENDENCIES AND PREREQUISITES
How to create an Android project (seeCreating
an Android Project)
YOU SHOULD ALSO READ
Activ...
分类:
其他好文 时间:
2014-06-05 09:35:17
阅读次数:
320
看下ThreadPoolImpl的构造函数:
/**
* This constructor is used to create an unbounded threadpool
*/
public ThreadPoolImpl(ThreadGroup tg, String threadpoolName) {
inactivityTimeout = ORB...
分类:
其他好文 时间:
2014-06-05 07:41:45
阅读次数:
386
如果表字段太多,如果表中有些字段比较大,即便是你只查有限的几个字段,在做表关联和全表扫的时候,由于扫描的数据块多,性能方面还是会不理想。因为oracle扫描的时候是按照块为单位扫描,读取的时候也是按块为单位读取,所以这种功能无法在SQL层面上优化的时候,可以考虑做数据的垂直切分,下面来做个试验:
--制造数据不做垂直切分
create table test(
a number,
...
分类:
数据库 时间:
2014-06-05 06:12:44
阅读次数:
356
create database dbname;
drop database dbname;
create database master;
use master;
drop database master;
#1、创建数据库新表
create database tests;
#2、使用新表
use test;
#3、创建表
create table basic_...
分类:
数据库 时间:
2014-06-05 05:36:52
阅读次数:
297