Browse Source

removed old file headers; added some debugging code

pull/2/head
Siegfried Pammer 15 years ago
parent
commit
fb85160010
  1. 8
      src/AddIns/Analysis/Profiler/Hook/Callback.cpp
  2. 8
      src/AddIns/Analysis/Profiler/Hook/Callback.h
  3. 8
      src/AddIns/Analysis/Profiler/Hook/CircularBuffer.cpp
  4. 8
      src/AddIns/Analysis/Profiler/Hook/CircularBuffer.h
  5. 8
      src/AddIns/Analysis/Profiler/Hook/CriticalSection.h
  6. 8
      src/AddIns/Analysis/Profiler/Hook/EventWaitHandle.cpp
  7. 8
      src/AddIns/Analysis/Profiler/Hook/EventWaitHandle.h
  8. 8
      src/AddIns/Analysis/Profiler/Hook/FunctionInfo.cpp
  9. 8
      src/AddIns/Analysis/Profiler/Hook/FunctionInfo.h
  10. 8
      src/AddIns/Analysis/Profiler/Hook/Hook.cpp
  11. 8
      src/AddIns/Analysis/Profiler/Hook/LightweightList.cpp
  12. 8
      src/AddIns/Analysis/Profiler/Hook/LightweightList.h
  13. 8
      src/AddIns/Analysis/Profiler/Hook/LightweightStack.h
  14. 22
      src/AddIns/Analysis/Profiler/Hook/Profiler.cpp
  15. 8
      src/AddIns/Analysis/Profiler/Hook/Profiler.h
  16. 8
      src/AddIns/Analysis/Profiler/Hook/ProfilerFactory.h
  17. 8
      src/AddIns/Analysis/Profiler/Hook/ProfilerMetaData.cpp
  18. 8
      src/AddIns/Analysis/Profiler/Hook/ProfilerMetaData.h
  19. 8
      src/AddIns/Analysis/Profiler/Hook/SharedMemory.cpp
  20. 8
      src/AddIns/Analysis/Profiler/Hook/SharedMemory.h
  21. 8
      src/AddIns/Analysis/Profiler/Hook/allocator.cpp
  22. 8
      src/AddIns/Analysis/Profiler/Hook/allocator.h
  23. 17
      src/AddIns/Analysis/Profiler/Hook/constants.cpp
  24. 11
      src/AddIns/Analysis/Profiler/Hook/global.h
  25. 8
      src/AddIns/Analysis/Profiler/Hook/main.cpp
  26. 8
      src/AddIns/Analysis/Profiler/Hook/main.h

8
src/AddIns/Analysis/Profiler/Hook/Callback.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "Callback.h"

8
src/AddIns/Analysis/Profiler/Hook/Callback.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once
#include "CorProfilerCallbackImpl.h"

8
src/AddIns/Analysis/Profiler/Hook/CircularBuffer.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "CircularBuffer.h"

8
src/AddIns/Analysis/Profiler/Hook/CircularBuffer.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

8
src/AddIns/Analysis/Profiler/Hook/CriticalSection.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once
#include "main.h"

8
src/AddIns/Analysis/Profiler/Hook/EventWaitHandle.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "EventWaitHandle.h"

8
src/AddIns/Analysis/Profiler/Hook/EventWaitHandle.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

8
src/AddIns/Analysis/Profiler/Hook/FunctionInfo.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "global.h"

8
src/AddIns/Analysis/Profiler/Hook/FunctionInfo.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

8
src/AddIns/Analysis/Profiler/Hook/Hook.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "global.h"

8
src/AddIns/Analysis/Profiler/Hook/LightweightList.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include <cassert>
#include "main.h"

8
src/AddIns/Analysis/Profiler/Hook/LightweightList.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Siegfried Pammer"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

8
src/AddIns/Analysis/Profiler/Hook/LightweightStack.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include <cassert>

22
src/AddIns/Analysis/Profiler/Hook/Profiler.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "global.h"
@ -496,7 +492,7 @@ STDMETHODIMP CProfiler::ExceptionThrown(ObjectID) { @@ -496,7 +492,7 @@ STDMETHODIMP CProfiler::ExceptionThrown(ObjectID) {
STDMETHODIMP CProfiler::ExceptionUnwindFunctionLeave() {
DebugWriteLine(L"ExceptionUnwindFunctionLeave");
FunctionLeaveGlobal();
return S_OK;
return S_OK;
}
STDMETHODIMP CProfiler::JITCompilationStarted(FunctionID functionID, BOOL /*fIsSafeToBlock*/) {
@ -507,18 +503,24 @@ STDMETHODIMP CProfiler::JITCompilationStarted(FunctionID functionID, BOOL /*fIsS @@ -507,18 +503,24 @@ STDMETHODIMP CProfiler::JITCompilationStarted(FunctionID functionID, BOOL /*fIsS
return S_OK;
for (int i = 0; i < CONSOLE_GROUP_LENGTH; i++) {
if (wcsstr(consoleGroupList[i], name) != nullptr)
if (wcsstr(consoleGroupList[i], name) != nullptr) {
DebugWriteLine(L"Rewriting %s", name);
Rewrite(functionID, 0x1, nameId);
}
}
for (int i = 0; i < WINFORMS_GROUP_LENGTH; i++) {
if (wcsstr(winFormsGroupList[i], name) != nullptr)
if (wcsstr(winFormsGroupList[i], name) != nullptr) {
DebugWriteLine(L"Rewriting %s", name);
Rewrite(functionID, 0x2, nameId);
}
}
for (int i = 0; i < WPF_GROUP_LENGTH; i++) {
if (wcsstr(wpfGroupList[i], name) != nullptr)
if (wcsstr(wpfGroupList[i], name) != nullptr) {
DebugWriteLine(L"Rewriting %s", name);
Rewrite(functionID, 0x3, nameId);
}
}
return S_OK;

8
src/AddIns/Analysis/Profiler/Hook/Profiler.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

8
src/AddIns/Analysis/Profiler/Hook/ProfilerFactory.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

8
src/AddIns/Analysis/Profiler/Hook/ProfilerMetaData.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "Profiler.h"

8
src/AddIns/Analysis/Profiler/Hook/ProfilerMetaData.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

8
src/AddIns/Analysis/Profiler/Hook/SharedMemory.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "SharedMemory.h"

8
src/AddIns/Analysis/Profiler/Hook/SharedMemory.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

8
src/AddIns/Analysis/Profiler/Hook/allocator.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "windows.h"

8
src/AddIns/Analysis/Profiler/Hook/allocator.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

17
src/AddIns/Analysis/Profiler/Hook/constants.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "global.h"
@ -13,10 +9,11 @@ WCHAR *consoleGroupList[CONSOLE_GROUP_LENGTH] = { @@ -13,10 +9,11 @@ WCHAR *consoleGroupList[CONSOLE_GROUP_LENGTH] = {
};
WCHAR *winFormsGroupList[WINFORMS_GROUP_LENGTH] = {
L"System.Windows.Forms.Control.OnClick",
L"System.Windows.Forms.Control.OnDoubleClick",
L"System.Windows.Forms.Control.OnMouseWheel",
L"System.Windows.Forms.Control.OnKeyDown"
L"-------------------------------------------------",
// L"System.Windows.Forms.Control.OnClick",
// L"System.Windows.Forms.Control.OnDoubleClick",
// L"System.Windows.Forms.Control.OnMouseWheel",
// L"System.Windows.Forms.Control.OnKeyDown"
};
WCHAR *wpfGroupList[WPF_GROUP_LENGTH] = {

11
src/AddIns/Analysis/Profiler/Hook/global.h

@ -1,11 +1,8 @@ @@ -1,11 +1,8 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once
#include "main.h"
#include "allocator.h"
#include "sharedMemory.h"
@ -14,7 +11,7 @@ @@ -14,7 +11,7 @@
#include "LightweightList.h"
#define CONSOLE_GROUP_LENGTH 2
#define WINFORMS_GROUP_LENGTH 4
#define WINFORMS_GROUP_LENGTH 1
#define WPF_GROUP_LENGTH 1
extern fastAllocator stackAllocator;

8
src/AddIns/Analysis/Profiler/Hook/main.cpp

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <author name="Daniel Grunwald"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#include "main.h"
#include "global.h"

8
src/AddIns/Analysis/Profiler/Hook/main.h

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
#pragma once

Loading…
Cancel
Save