|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Oct 1999
Città: Grenoble (F)
Messaggi: 2431
|
Profiling in Visual Studio Enterprise
Sto cercando di valutare il tempo di esecuzione di alcune istruzioni in VisualC++ (in particolare uno shifting)
Ho provato a vedere il profile dell'ambiente, ma non riesco a capirci granchè Qualcuno sa dirmi almeno come iniziare, visto che non riesco a rendere nemmeno attiva la voce di menu Build->Profile... ?? grazie ai coraggiosi che si cimenteranno nella risposta
__________________
Good enough is good enough, whereas perfect is always a pain in the ass and often not worth the trouble anyway - John Clark (Without Remorse by Tom Clancy) |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Feature Only in Professional and Enterprise Editions Profiling is supported only in Visual C++ Professional and Enterprise Editions. For more information, see Visual C++ Editions.
Before using the profiler, you must build the current project with profiling enabled (equivalent to the command line setting LINK /PROFILE). If you want to perform function profiling only in the current project, you only need to enable profiling for the linker. If you want to do line profiling, you also need to include debugging information. To build your project for function profiling On the Build menu, click Settings to display the Project Settings dialog box. Click the Link tab. In the Category drop-down list box, click General. Select the Enable Profiling check box. Click OK. On the Build menu, click Build projectname.exe. Note Selecting the Enable Profiling check box turns off incremental linking. To re-enable incremental linking, clear the Enable Profiling option. To build your project for line profiling Perform the procedure to enable function profiling described earlier in this topic. Select the Generate Debug Info check box. Click the C/C++ tab. In the Category drop-down list box, click General. In the Debug Info drop-down list box, click Program Database or Line Numbers Only. Click OK. On the Build menu, click Build projectname.exe. When the build is complete, the project is ready to be profiled. Certe volte l'help aiuta molto |
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Oct 1999
Città: Grenoble (F)
Messaggi: 2431
|
Grazie mille
Avevo provato a cercare anch'io (e devo dire che l'help del VS6, ossia il MSDN, è fatto veramente bene, uno dei pochi veramente utili), ma mi ero perso tra tutte le pagine collegate Non trovando il riferimento a "enable profiling" mi sentivo (molto) smarrito grazie ancora...
__________________
Good enough is good enough, whereas perfect is always a pain in the ass and often not worth the trouble anyway - John Clark (Without Remorse by Tom Clancy) |
|
|
|
|
|
#4 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Di niente
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:03.



















