locked
[WP8.1+][C++/CX][Memory Profile] Does VS2015 support profile native library Project? RRS feed

  • Question

  • Environment

    Windows 10 pro
    Visual Studio 2015 update 1
    Windows Phone 8.1 and Windows Phone 10

    Description :

    I am doing windows runtime library in C++/CX and I also created a Unit Test project to test my library.
    It works well and generated Winmd file and dll and test project also can run in the Windows Phone emulator and device. 

    Now I try to profile my library, my encounter issues here.  

    Scenario 1: 
    (1) set "C++/CX" library project as "Set as Startup project"
    (2) select "release" and "arm" (I also tested on Win32 as well)
    (3) launch "Start Diagnostic Tools without Debugging (Alt + F2)
    (4) select "Memory Usage" and then click "start" 

    It gave the error 

    Unable to connect to the Microsoft Visual Studio Remote Debugger named '###HOSTNAME_PLACEHOLDER###'.

    The debugger cannot connect to the remote computer. The debugger was unable to resolve the specified computer name.

    Question: Where shall I find the '###HOSTNAME_PLACEHOLDER###'?

    I have checked my "property" of the project, and I didn't find anything about the hostname setting.
    And I also don't find "Debugging" option on left side of "project".

    Scenario 2: 
    (1) set "Unit Test project as "Set as Startup project"
    (2) launch "Start Diagnostic Tools without Debugging (Alt + F2)
    (3) select "release" and "arm" (I also tested on Win32 as well)
    (4) select "Memory Usage" and then click "start" 

    It gave the error 

    Diagnostics session failed to start.
    
    Build failed for project 'MyUnitTests'

    Question:
    How do I solve the issue? 

    ------------

    Before I run the profile, I have successfully built and run the unit test. 

    The reference I have read, but didn't find answer,

    https://msdn.microsoft.com/en-us/library/0773txhx.aspx


    Thanks & Regards
    Heefan

    Wednesday, March 9, 2016 6:00 AM

All replies