thiagoald / shinyprofiler Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/shinyprofiler
Automatically exported from code.google.com/p/shinyprofiler
I recently downloaded and built the shiny profiler. I am still getting the
hang of it. However, I just wanted to post a few notes of changes I needed
to make to get it to build the library.
I am working on Ubuntu 9.10 - 64bit, g++ 4.4.1
1. Made a directory Shiny/lib
2. Moved makefiles to the Shiny folder
3. Edit makefile - changed .cpp.o: to .c.o:
4. In ShinyTools.c Line 98, The definition differs from declaration in
ShinyTools.h Line 45. Changed .c file to be like .h file and return a non-
const value.
5. There were some extern "C" sections that seemed backwards with the close
} coming before the open {. Comments seemed mis-aligned as well. I just
commented those lines out for myself since I could not judge your intent,
but it almost looked like they were simply swapped. The files and number
of times I did that were: ShinyZone.h(1), ShinyNode.h(1), ShinyOuput.h(1),
ShinyManager.h(3)
6. Since I am using a 64 bit system the hash functions that convert void*
to uint32_t cause an error since they are not the same size. I was not
sure of the affect of changing the variable size, but I opted to use
general unsigned integer that is the same size as the void*. For me I did
this by using a templated class to tell me the type based on the sizeof the
void*.
I hope this information is useful. I look forward to using your profiler.
Thanks!
Original issue reported on code.google.com by [email protected]
on 29 Apr 2010 at 11:43
What steps will reproduce the problem?
1. Create CMakeLlists.txt File:
---------------------------------------------
SET(PROJECTNAME "SHINY_PROFILER")
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules")
PROJECT(SHINY)
FILE(GLOB_RECURSE SOURCES "./Shiny/src/*.c")
INCLUDE_DIRECTORIES("./Shiny/include")
ADD_EXECUTABLE (${PROJECTNAME} ${SOURCES})
SET_TARGET_PROPERTIES(${PROJECTNAME} PROPERTIES
OUTPUT_NAME "${PROJECTNAME}"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
-------------------------------
2. mkdir _build
3. cd _build
4. cmake ..
5. make
6: Error: Shiny/include/ShinyPrereqs.h:140: error: expected ‘=’, ‘,’,
‘;’,
‘asm’ or ‘__attribute__’ before ‘shinytick_t’
I am using ubuntu 9.10 with gcc version 4.4.1
I hope you still have time to check this issue.
thanks alot!
regards
Eugen
Original issue reported on code.google.com by [email protected]
on 4 Mar 2010 at 10:43
Attachments:
What steps will reproduce the problem?
1. SHINY_VERSION "2.6 RC1"
2. latest version of visual leak detector http://vld.codeplex.com/
3. vld detects 2 memory leaks for the clode below:
#include "Shiny.h"
#include "vld.h"
int main()
{
PROFILE_BEGIN( test );
PROFILE_END( );
PROFILE_UPDATE();
PROFILE_OUTPUT(0);
return 0;
}
What is the expected output? What do you see instead?
WARNING: Visual Leak Detector detected memory leaks!
---------- Block 1 at 0x00D86FF8: 22528 bytes ----------
Leak Hash: 0xEB9FE4E9 Count: 1
Call Stack:
c:\lab\lib\shiny\shiny\src\shinymanager.c (315): test.exe!_ShinyManager_createNodeTable + 0xF bytes
c:\lab\lib\shiny\shiny\src\shinymanager.c (223): test.exe!_ShinyManager_lookupNode + 0xE bytes
c:\lab\lib\shiny\shiny\include\shinymanager.h (159): test.exe!ShinyManager_lookupAndBeginNode + 0x11 bytes
c:\cv_src\main\test\test.cpp (149): test.exe!main + 0x14 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (555): test.exe!__tmainCRTStartup + 0x19 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (371): test.exe!mainCRTStartup
0x75E033AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
0x77759EF2 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
0x77759EC5 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
Data:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
---------- Block 2 at 0x00D8C838: 11280 bytes ----------
Leak Hash: 0x5CA85C76 Count: 1
Call Stack:
c:\lab\lib\shiny\shiny\src\shinynodepool.c (38): test.exe!ShinyNodePool_create + 0x15 bytes
c:\lab\lib\shiny\shiny\src\shinymanager.c (294): test.exe!_ShinyManager_createNodePool + 0x9 bytes
c:\lab\lib\shiny\shiny\src\shinymanager.c (224): test.exe!_ShinyManager_lookupNode + 0xE bytes
c:\lab\lib\shiny\shiny\include\shinymanager.h (159): test.exe!ShinyManager_lookupAndBeginNode + 0x11 bytes
c:\cv_src\main\test\test.cpp (149): test.exe!main + 0x14 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (555): test.exe!__tmainCRTStartup + 0x19 bytes
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (371): test.exe!mainCRTStartup
0x75E033AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
0x77759EF2 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
0x77759EC5 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
Data:
00 00 00 00 A0 C8 D8 00 48 F4 D8 00 CD CD CD CD ........ H.......
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
08 70 2D 01 70 70 2D 01 00 00 00 00 00 00 00 00 .p-.pp-. ........
00 00 00 00 00 00 00 00 01 00 00 00 00 70 2D 01 ........ .....p-.
01 00 00 00 00 00 80 3F 00 00 00 00 00 00 00 00 .......? ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........
Visual Leak Detector detected 2 memory leaks (33880 bytes).
What version of the product are you using? On what operating system?
SHINY_VERSION "2.6 RC1"
Windows 7
Please provide any additional information below.
Original issue reported on code.google.com by hatem.taleb
on 27 Feb 2013 at 10:09
On the project homepage:
"Shiny is a lightning fast, fully documented and by far the-easiest-to-use-ever
C/C++/Lua high-performance profiler"
"Amazingly simple-to-use & flexible interface with lots of examples and docs"
Problem behavior:
In the documentation section of the homepage: "..."
In the examples section of the homepage: "..."
In the downloaded archive: no examples, just an FAQ and a single doxygen-style
macro reference sheet.
Expected behavior:
"Amazingly simple-to-use & flexible interface with **lots of examples and
docs**"
Original issue reported on code.google.com by QRohlf
on 6 Jun 2013 at 4:16
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.