CPU 1.查看CPU利用率较高的进程 pidstat 1 5 | grep -v $(hostnmae) |grep -v '^$' | sort -k 5 -rn | head 2.查看某个进程的调用关系 perf record -g -p pid Ctrl + C 中断收集 perf repo ...
分类:
系统相关 时间:
2020-05-18 16:19:43
阅读次数:
72
微信小程序自定义tabbar 1.介绍:微信自带的tabbar已经无法满足我们的需求了,往往我们需要自定义tabbar,请看代码 <!-- 首先在page下面创建home首页页面,只用来存放我们的tabbar --> <van-tabbar active="{{ active }}" bind:ch ...
分类:
微信 时间:
2020-05-18 14:27:46
阅读次数:
115
第一步:配置网络(静态IP) (网卡名称可能不同) 1. 修改: 将该配置文件中的ONBOOT=no修改为yes(网络开机自启) 将BOOTPROTO=dhcp修改为static(将ip设置为静态ip) 2. 为了能够通过外部访问到虚拟机,增加: IPADDR=192.168.154.110(110 ...
分类:
其他好文 时间:
2020-05-17 20:35:34
阅读次数:
76
synchronized 锁定的是一个对象,执行某段代码的时候必须锁定一个对象,不锁定就无法执行 一、概念介绍 1.1 用户态与内核态 内核态(kener):内核/操作系统可以做的一些操作。 用户态(APP):用户的程序可以做的一些操作。 用户态的程序要访问一些比较危险的操作的时候,比如格式化硬盘或 ...
分类:
其他好文 时间:
2020-05-17 16:04:20
阅读次数:
86
在Form.OnKeyPress事件中写如下代码: if Key = #13 then if ActiveControl = DBGrid1 then begin TDBGrid(ActiveControl).SelectedIndex := TDBGrid(ActiveControl).Selec ...
分类:
移动开发 时间:
2020-05-16 17:19:05
阅读次数:
85
示例: if Key = 13 then //回車後跳到下一格 with TDbgrideh(ActiveControl) do begin if Selectedindex < (FieldCount - 1) then Selectedindex := Selectedindex + 1 els ...
分类:
数据库 时间:
2020-05-16 16:54:03
阅读次数:
64
create table order_ipad( id bigint(20) unsigned not null auto_increment,comment '自增主键', uuid bigint(20) unsigned not null default '0' comment '用户id', ...
分类:
其他好文 时间:
2020-05-15 17:55:14
阅读次数:
55
<el-col> <el-menu default-active="1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" background-color="rgb(255,255,255,0)" text- ...
分类:
其他好文 时间:
2020-05-15 16:10:12
阅读次数:
165
告警信息: 13% building modules 28/40 modules 12 active ...dex=0!\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }. 9 ...
分类:
其他好文 时间:
2020-05-15 00:27:14
阅读次数:
235