MySQL 的 SQL 語法調整主要都是使用 EXPLAIN , 但是這個並沒辦法知道詳細的 Ram(Memory)/CPU 等使用量. 於 MySQL 5.0.37 以上開始支援 MySQL Query Profiler, 可以查詢到此 SQL 會執行多少時間, 並看出 CPU/Memory 使用量, 執行過程中 System lock, Table lock 花多少時間等等. MySQL Query Profile 詳細介紹可見: Using the New MySQL Query Profiler (2007.04.05 發表) 效能分析主要分下述三種(轉載...[ 查看全文 ]
using System; using System.Threading; class Class1 { [System.Runtime.InteropServices.DllImport("Kernel32.dll")] static extern bool QueryPerformanceCounter( ref long count); ...[ 查看全文 ]
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTML HEAD TITLE New Document /TITLE META NAME="Generator" CONTENT="EditPlus" META NAME="Author" CONTENT="" META NAME="Keywords" CONTENT="" META NAME="Description" CONTENT="" style * { font-size:10.2pt; font-family:tahoma; line-height:150%; } .divContent { border:1px solid red; background...[ 查看全文 ]
using System; using System.Net; using System.IO; using System.Text; using System.Net.Sockets; namespace zhangyuk.net.csdn.blog.ftpclient { /// <summary /// FTP Client /// </summary public class FTPClient { #region 构造函数 /// <summary /// 缺省构造函数 /// </summary public FTPClient() { ...[ 查看全文 ]
本程序属于一种特别的方法。使用范围比较有限,而且有一定的危险性。借鉴了asp后门里的一些方法。下面是程序代码。 <% dim remoteaddr if Request.ServerVariables("HTTP_X_FORWARDED_FOR")=empty then remoteaddr=Request.ServerVariables("REMOTE_ADDR") else remoteaddr=Request.ServerVariables("HTTP_X_FORWARDED_FOR") end if Response.Write(GetMac(remoteaddr)) '由于读取某IP的网卡MAC...[ 查看全文 ]