当前位置: 首页 > news >正文

深圳企业排名优化网站推广教程整站

深圳企业排名,优化网站推广教程整站,怎么推广公司,哪些网站在哪找的接前一篇文章:BCC源码编译和安装 本文参考官网中的Contents部分的介绍。 BCC源码根目录的文件,其中一些是同时包含C和Python的单个文件,另一些是.c和.py的成对文件,还有一些是目录。 跟踪(Tracing) exam…

接前一篇文章:BCC源码编译和安装

本文参考官网中的Contents部分的介绍。

BCC源码根目录的文件,其中一些是同时包含C和Python的单个文件,另一些是.c和.py的成对文件,还有一些是目录。

跟踪(Tracing)

examples目录下的文件:

  • examples/tracing/bitehist.py

块I/O大小直方图。

bcc/examples/tracing/bitehist.txt文件内容如下:

Demonstrations of bitehist.py, the Linux eBPF/bcc version.This prints a power-of-2 histogram to show the block I/O size distribution.
A summary is printed after Ctrl-C is hit.# ./bitehist.py
Tracing... Hit Ctrl-C to end.
^Ckbytes          : count     distribution0 -> 1        : 3        |                                      |2 -> 3        : 0        |                                      |4 -> 7        : 211      |**********                            |8 -> 15       : 0        |                                      |16 -> 31       : 0        |                                      |32 -> 63       : 0        |                                      |64 -> 127      : 1        |                                      |128 -> 255      : 800      |**************************************|This output shows a bimodal distribution. The largest mod of 800 I/O were
between 128 and 255 Kbytes in size, and another mode of 211 I/O were between
4 and 7 Kbytes in size.Understanding this distribution is useful for characterizing workloads and
understanding performance. The existence of this distribution is not visible
from averages alone.
  • examples/tracing/disksnoop.py

跟踪块设备I/O延迟。

bcc/examples/tracing/disksnoop_example.txt文件内容如下:

Demonstrations of disksnoop.py, the Linux eBPF/bcc version.This traces block I/O, a prints a line to summarize each I/O completed:# ./disksnoop.py 
TIME(s)            T  BYTES    LAT(ms)
16458043.435457    W  4096        2.73
16458043.435981    W  4096        3.24
16458043.436012    W  4096        3.13
16458043.437326    W  4096        4.44
16458044.126545    R  4096       42.82
16458044.129872    R  4096        3.24
16458044.130705    R  4096        0.73
16458044.142813    R  4096       12.01
16458044.147302    R  4096        4.33
16458044.148117    R  4096        0.71
16458044.148950    R  4096        0.70
16458044.164332    R  4096       15.29
16458044.168003    R  4096        3.58
16458044.171676    R  4096        3.59
16458044.172453    R  4096        0.72
16458044.173213    R  4096        0.71
16458044.173989    R  4096        0.72
16458044.174739    R  4096        0.70
16458044.190334    R  4096       15.52
16458044.196608    R  4096        6.17
16458044.203091    R  4096        6.35The output includes a basic timestamp (in seconds), the type of I/O (W == write,
R == read, M == metadata), the size of the I/O in bytes, and the latency (or
duration) of the I/O in milliseconds.The latency is measured from I/O request to the device, to the device
completion. This excludes latency spent queued in the OS.Most of the I/O in this example were 0.7 and 4 milliseconds in duration. There
was an outlier of 42.82 milliseconds, a read which followed many writes (the
high latency may have been caused by the writes still being serviced on the
storage device).
  • examples/hello_world.py

为新进程打印“Hello, World!”。

bcc/examples/hello_world.py文件内容如下:

#!/usr/bin/python
# Copyright (c) PLUMgrid, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")# run in project examples directory with:
# sudo ./hello_world.py"
# see trace_fields.py for a longer examplefrom bcc import BPF# This may not work for 4.17 on x64, you need replace kprobe__sys_clone with kprobe____x64_sys_clone
BPF(text='int kprobe__sys_clone(void *ctx) { bpf_trace_printk("Hello, World!\\n"); return 0; }').trace_print()
  • examples/tracing/mysqld_query.py

使用USDT探测跟踪MySQL服务器查询。

bcc/examples/tracing/mysqld_query.txt文件内容如下:

# ./mysqld_query.py `pgrep -n mysqld`
TIME(s)            COMM             PID    QUERY
17450459.549910001 mysqld           18608  select @@version_comment limit 1
17450463.822668001 mysqld           18608  SELECT DATABASE()
17450463.824042998 mysqld           18608  show databases
17450463.824570000 mysqld           18608  show tables
17450465.602717999 mysqld           18608  SELECT COUNT(*) FROM words
17450479.944897000 mysqld           18608  SELECT * FROM words WHERE word REGEXP '^bre.*n$'

http://www.tj-hxxt.cn/news/24708.html

相关文章:

  • 集团高端网站高质量软文
  • 网站分站作用软文推广渠道
  • 日本做鸡做爱成人网站播放百度seo怎么操作
  • 高端做网站价格seo的搜索排名影响因素主要有
  • 在上海做网站全网自媒体平台
  • 商丘高端网站建设域名购买哪个网站好
  • 微信网站开发模板网络营销策略包括哪些
  • wordpress 密码加密方式郑州网站建设推广优化
  • 做视频的网站带模板seo网络优化是什么工作
  • 海外网站测速2023年7月最新疫情
  • wordpress10和3优先级湖南网站建设推广优化
  • 做网站宣传有用吗做网页设计的软件
  • 网站设计的软件seo公司上海牛巨微
  • 企业网站排名怎么优化成人技术培训班有哪些种类
  • 章丘网站建设郑州网站策划
  • 做网站先做前台还是后台市场营销策划公司
  • 南昌公司网站建设公司永久免费无代码开发平台网站
  • 网站怎样多语言app拉新推广平台代理
  • 做btob上哪个网站好太极seo
  • 做自己的独立外贸网站软件定制开发平台
  • 东莞网站建设全过程莱芜seo
  • 电商网站建设与运行南宁哪里有seo推广厂家
  • 晋江网站有什么职业做公司网站建设服务机构
  • 江苏科技大学新校区建设网站好搜网惠州seo
  • 产品展示网站源码php河南郑州做网站的公司
  • 打开一个网站为繁体字是怎么做的关键词搜索量查询工具
  • 宁夏找人做网站多少钱友情链接交换源码
  • 杭州滨江网站建设公司seo课培训
  • 网站怎么做赚钱优化推广方案
  • 中国住房城乡建设厅网站建网站需要多少钱和什么条件