随笔分类 -  原创文章

使用PerfView监测.NET程序性能(四):折叠,过滤和时间范围选择
摘要:在上一篇文章中,我们使用了Perfview的分组功能。分组功能旨在对某些函数按照某个格式进行分组,以减少视图中的各种无关函数的数量。但仅有分组还不够,有时我们想将一些函数调用信息按某些条件过滤掉,例如将采用小于1%的函数调用信息去掉,或者将函数名中包含某个字眼的函数信息去掉,甚至只显示某个时间段调用 阅读全文

posted @ 2018-12-27 16:57 wyman25 阅读(1715) 评论(0) 推荐(2) 编辑

使用PerfView监测.NET程序性能(三):分组
摘要:在上一篇博客中,我们通过Perfview帮助文件中自带的代码来简单使用了Perfview,了解了基本操作。现在来看看Perfview中的分组操作(Grouping)。分组功能都旨将记录到的各种函数调用堆栈以指定的规则进行分组,帮助你组织和找到更关心的数据。 为什么需要分组 在实际使用中,PerfVi 阅读全文

posted @ 2018-12-08 21:54 wyman25 阅读(1832) 评论(1) 推荐(1) 编辑

使用PerfView监测.NET程序性能(二):Perfview的使用
摘要:PerfView 教程 阅读全文

posted @ 2018-11-23 19:14 wyman25 阅读(7895) 评论(2) 推荐(9) 编辑

Constructor in depth
摘要:There are two types of constructor:Instance Constructor and Type Constructor(or so-called Static Constructor). Instance Constructor When use the new k 阅读全文

posted @ 2018-11-20 22:01 wyman25 阅读(208) 评论(0) 推荐(0) 编辑

使用PerfView监测.NET程序性能(一):Event Trace for Windows
摘要:Event Trace for Windows ETW 阅读全文

posted @ 2018-11-20 21:50 wyman25 阅读(3291) 评论(0) 推荐(5) 编辑

Thread in depth 4:Synchronous primitives
摘要:There are some synchronization primitives in .NET used to achieve thread synchronization Monitor c# provides System.Threading.Monitor class which coop 阅读全文

posted @ 2017-05-02 15:50 wyman25 阅读(355) 评论(0) 推荐(0) 编辑

Thread in depth 2:Asynchronization and Task
摘要:When we want to do a work asynchronously, creating a new thread is a good way. .NET provides two others ways rather than create thread explicitly, tha 阅读全文

posted @ 2017-04-27 16:10 wyman25 阅读(175) 评论(0) 推荐(0) 编辑

SQL Server 死锁概念和分析
摘要:锁的概念 锁是什么 锁是数据库中在并发操作情形下保护资源的机制。通常(具体要看锁兼容性)只有锁的拥有者才能对被锁的资源进行操作,从而保证数据一致性。 锁的概念可分为几部分 1.锁的资源 2.锁的模式 3.锁在事务中的持续时间 不同的事务隔离级别下,锁有不同的持续时间。 (单一个SQL语句也是一个事物 阅读全文

posted @ 2017-04-19 11:20 wyman25 阅读(2576) 评论(1) 推荐(0) 编辑

wsdl 结构解析
摘要:webservice的跨平台特性要求它必须有某种手段来对服务进行自我描述,使不同的语言能正确理解如何调用该服务。webservice通过WSDL(Web Services Description Language)来实现这个目的。 webservice代码: 该服务的wsdl: wsdl主要通过 t 阅读全文

posted @ 2017-04-18 16:37 wyman25 阅读(566) 评论(0) 推荐(0) 编辑

Thread in depth 1: The basic
摘要:Every single thread has the follow elements: Thread in depth 1: The basic Thread in depth 2:Asynchronization and Task Thread in depth 3:Synchronizatio 阅读全文

posted @ 2017-04-18 00:28 wyman25 阅读(266) 评论(0) 推荐(0) 编辑

Easy mistakes in c#
摘要:ACCESS MODIFIERS c# has some access modifiers as below: public:class or member can be accessed by no restrictions private:members can only be accessed 阅读全文

posted @ 2017-04-15 11:53 wyman25 阅读(256) 评论(0) 推荐(0) 编辑

基于JWT的web api身份验证及跨域调用实践
摘要:随着多终端的出现,越来越多的站点通过web api restful的形式对外提供服务,很多网站也采用了前后端分离模式进行开发,因而在身份验证的方式上可能与传统的基于cookie的Session Id的做法有所不同,除了面临跨域提交cookie的烦人问题外,更重要的是,有些终端可能根本不支持cooki 阅读全文

posted @ 2017-04-10 13:22 wyman25 阅读(29382) 评论(9) 推荐(8) 编辑

Log4net配置与使用简要说明
摘要:log4net的配置和使用说明 阅读全文

posted @ 2017-02-21 10:37 wyman25 阅读(2351) 评论(0) 推荐(0) 编辑

SQL SERVER 2005 基于证书的镜像配置步骤
摘要:一:前言 SQL SERVER数据库镜像其实是对一个数据库建立一个副本,并保持主数据库和副本数据库数据的同步。这样当主数据库遇到问题需要停止运行,就可以切换到副本数据库继续工作,保持系统的持续可用。主数据库称为"主体(principal)",而副本数据库成为"镜像(mirror)"。而主体和镜像之间互称为“伙伴(partner)”。主体和镜像相互切换这个动作称作"角色切换(role switching)",或者叫做"故障转移(failover)"。另外为了能在遇到问题后自动执行角色切换,可以加入一个见证服务器&qu 阅读全文

posted @ 2013-05-15 14:51 wyman25 阅读(677) 评论(0) 推荐(0) 编辑

difference between "on" and "where" when using left/right join query
摘要:I used to put the where-condiction in the "on" substatement in a join query,wishing that can help reducing the join count and improving the performence.But totally i was wrong.It seems the on-condiction is not like the where-condiction in a left/right join query. For example, there are two 阅读全文

posted @ 2013-04-23 18:38 wyman25 阅读(192) 评论(0) 推荐(0) 编辑

分享一个基于FileSystemWatcher的文件自动备份程序
摘要:一:背景 我们公司asp.net的项目都是使用FTP进行上传下载来发布和更新的。尽管我们在发布修改之前都在本地进行进行测试,但本地的开发环境始终和外网上的实际环境还是有差别的(特别在一些数据上的差别),所以有时不可避免地出现在本地测试时没有Bug,但上传到外网就出现Bug的情况。 很多时候我们在ftp后如果出现bug,第一个反应就是马上还原回更新前的状态,也就是将旧问题替换回去。但这样也就需要在ftp上传前先将旧文件备份。但因为这样做太繁琐,有时候更新量大而且文件分散,备份旧文件就变成一件还是挺烦人的事情。虽然ftp工具都有简单的自动提示功能,例如filezilla就可以设定同名文件的处理.. 阅读全文

posted @ 2013-04-17 22:57 wyman25 阅读(2586) 评论(15) 推荐(3) 编辑

const VS readonly in detail
摘要:We know both const and readonly can be used to define unchangeablevariables,but what is the difference between'em since they are so similar to each other? There are a few points below: 1.const variables must have a certain value in the compilation time, but for readonly variables, its value can 阅读全文

posted @ 2013-03-21 15:57 wyman25 阅读(220) 评论(0) 推荐(0) 编辑

IIS7对于IIS6的改进及配置系统的差异
摘要:在IIS 6中asp.net的运行机制文章中,我们大致了解了HTTP请求在IIS6中的流转以及asp.net在IIS6中是如何运行的。但比较,IIS6毕竟是10年前的产物,尽管现在还有很多asp.net应用是部署在win2003+iis6平台下,但我相信,IIS7+会越来越受到人们的喜爱。就我自己而言,我是用上了win7才开始使用IIS7.5的,随着不断使用,我觉得IIS7+是到目前为止用得最爽的一个版本。 据说IIS7对于IIS6有很多改进的地方(例如模块化,更好的安全性和扩展性),但最令我印象深刻的是两点改变: 一:IIS7对asp.net的集成。 二:IIS7的配置系统(相对于... 阅读全文

posted @ 2013-02-25 18:37 wyman25 阅读(1320) 评论(0) 推荐(0) 编辑

Back/Forward and Refresh in browser
摘要:What's the difference between pressing back/forward button and pressing refresh button? And what would happen inside a browser when we press those three button? Basically,the back and forward button just simply "keep the previous state of the page",letting the page looks like the same 阅读全文

posted @ 2013-01-30 17:43 wyman25 阅读(352) 评论(0) 推荐(0) 编辑

Will static methods over multithreading cause thread-safe problem?
摘要:Most of the time when we are using multi-threading we are likely facing the thread-safe issue,it seems that this problem always come up withcallingstatic methods or functions in a thread when multi-threading coding.But is it correct? For more detail, i've done a lot google to search this issue i 阅读全文

posted @ 2013-01-23 00:15 wyman25 阅读(267) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示