示例#1
0
        public void OpenSampler(SamplerMetricType type)
        {
            if (m_SamplerDic.ContainsKey(type))
            {
                return;
            }
            ISampler sampler = GPerfSamplerFactory.GetSampler(type);

            if (sampler != null)
            {
                sampler.OnSampleRecord = OnHandleRecord;

                sampler.DoStart();
                m_SamplerDic.Add(type, sampler);
            }
        }