多核JIT是否可以在WPF(.NET 4.5)上运行? [英] Does Multi-core JIT works on WPF(.NET 4.5)?

查看:169
本文介绍了多核JIT是否可以在WPF(.NET 4.5)上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的PC的配置:Windows 7 Pro 64位,CPU为XEON E3 1225和8GB Ram

My PC's configurations: Windows 7 Pro 64 Bits, CPU is XEON E3 1225 and 8GB Ram

在公共App()中运行以下代码后,配置文件根目录"文件夹和配置文件都没有出现.

After I run the following codes in public App(), the Profile Root folder doesn't appear and the Profile File either.

ProfileOptimization.SetProfileRoot(AppDomain.CurrentDomain.BaseDirectory +"StartupFolder");
ProfileOptimization.StartProfile("ProfileFile");

ProfileOptimization.SetProfileRoot(AppDomain.CurrentDomain.BaseDirectory + "StartupFolder");
ProfileOptimization.StartProfile("ProfileFile");

我错过了什么吗?还是在WPF中不起作用?谢谢.

Am I missing something? or it doesn't work in WPF? Thanks.

推荐答案

嗨安森,

您检查文件夹是否存在吗?

Have you checked if the folder exists?

公共  静态  void   SetProfileRoot(
字符串  directoryPath
)

public static void SetProfileRoot(
string directoryPath
)

指定的文件夹必须已经存在.如果它不存在,则调用此方法不会创建它,并且不会进行性能分析.

The specified folder must already exist. If it does not exist, calling this method does not create it, and no profiling occurs.

没有多个内核的计算机上,此方法将被忽略.

On computers that do not have multiple cores, this method is ignored.

此致

Jenny


这篇关于多核JIT是否可以在WPF(.NET 4.5)上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆