code stringlengths 0 56.1M | repo_name stringlengths 3 57 | path stringlengths 2 176 | language stringclasses 672
values | license stringclasses 8
values | size int64 0 56.8M |
|---|---|---|---|---|---|
#include "TracyDxt1.hpp"
#include "../common/TracyForceInline.hpp"
#include <assert.h>
#include <stdint.h>
#include <string.h>
#ifdef __ARM_NEON
# include <arm_neon.h>
#endif
#if defined __AVX__ && !defined __SSE4_1__
# define __SSE4_1__
#endif
#if defined __SSE4_1__ || defined __AVX2__
# ifdef _MSC_VER
# inc... | whupdup/frame | real/third_party/tracy/client/TracyDxt1.cpp | C++ | gpl-3.0 | 32,169 |
#ifndef __TRACYDXT1_HPP__
#define __TRACYDXT1_HPP__
namespace tracy
{
void CompressImageDxt1( const char* src, char* dst, int w, int h );
}
#endif
| whupdup/frame | real/third_party/tracy/client/TracyDxt1.hpp | C++ | gpl-3.0 | 151 |
#ifndef __TRACYFASTVECTOR_HPP__
#define __TRACYFASTVECTOR_HPP__
#include <assert.h>
#include <stddef.h>
#include "../common/TracyAlloc.hpp"
#include "../common/TracyForceInline.hpp"
namespace tracy
{
template<typename T>
class FastVector
{
public:
using iterator = T*;
using const_iterator = const T*;
F... | whupdup/frame | real/third_party/tracy/client/TracyFastVector.hpp | C++ | gpl-3.0 | 2,673 |
#ifndef __TRACYLOCK_HPP__
#define __TRACYLOCK_HPP__
#include <atomic>
#include <limits>
#include "../common/TracySystem.hpp"
#include "../common/TracyAlign.hpp"
#include "TracyProfiler.hpp"
namespace tracy
{
class LockableCtx
{
public:
tracy_force_inline LockableCtx( const SourceLocationData* srcloc )
:... | whupdup/frame | real/third_party/tracy/client/TracyLock.hpp | C++ | gpl-3.0 | 17,236 |
#ifdef TRACY_ENABLE
#ifdef _WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <winsock2.h>
# include <windows.h>
# include <tlhelp32.h>
# include <inttypes.h>
# include <intrin.h>
# include "../common/TracyUwp.hpp"
#else
# include <sys/time.h>
# include <sys/param.h>
#endif
#ifdef _GNU_SOURCE
#... | whupdup/frame | real/third_party/tracy/client/TracyProfiler.cpp | C++ | gpl-3.0 | 143,936 |
#ifndef __TRACYPROFILER_HPP__
#define __TRACYPROFILER_HPP__
#include <assert.h>
#include <atomic>
#include <stdint.h>
#include <string.h>
#include <time.h>
#include "tracy_concurrentqueue.h"
#include "tracy_SPSCQueue.h"
#include "TracyCallstack.hpp"
#include "TracySysTime.hpp"
#include "TracyFastVector.hpp"
#include ... | whupdup/frame | real/third_party/tracy/client/TracyProfiler.hpp | C++ | gpl-3.0 | 30,828 |
#include <atomic>
#include <assert.h>
#include <errno.h>
#include <linux/perf_event.h>
#include <stdint.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <unistd.h>
#include "TracyDebug.hpp"
namespace tracy
{
class RingBuffer
{
public:
RingBuffer( unsigned int size, int fd, int id, int... | whupdup/frame | real/third_party/tracy/client/TracyRingBuffer.hpp | C++ | gpl-3.0 | 3,598 |
#ifndef __TRACYSCOPED_HPP__
#define __TRACYSCOPED_HPP__
#include <limits>
#include <stdint.h>
#include <string.h>
#include "../common/TracySystem.hpp"
#include "../common/TracyAlign.hpp"
#include "../common/TracyAlloc.hpp"
#include "TracyProfiler.hpp"
namespace tracy
{
class ScopedZone
{
public:
ScopedZone( con... | whupdup/frame | real/third_party/tracy/client/TracyScoped.hpp | C++ | gpl-3.0 | 5,882 |
#ifndef __TRACYSTRINGHELPERS_HPP__
#define __TRACYSTRINGHELPERS_HPP__
#include <assert.h>
#include <string.h>
#include "../common/TracyAlloc.hpp"
namespace tracy
{
static inline char* CopyString( const char* src, size_t sz )
{
assert( strlen( src ) == sz );
auto dst = (char*)tracy_malloc( sz + 1 );
memc... | whupdup/frame | real/third_party/tracy/client/TracyStringHelpers.hpp | C++ | gpl-3.0 | 1,018 |
#include "TracySysTime.hpp"
#ifdef TRACY_HAS_SYSTIME
# if defined _WIN32
# include <windows.h>
# elif defined __linux__
# include <stdio.h>
# include <inttypes.h>
# elif defined __APPLE__
# include <mach/mach_host.h>
# include <mach/host_info.h>
# elif defined BSD
# include <sys/types.h>
# in... | whupdup/frame | real/third_party/tracy/client/TracySysTime.cpp | C++ | gpl-3.0 | 2,390 |
#ifndef __TRACYSYSTIME_HPP__
#define __TRACYSYSTIME_HPP__
#if defined _WIN32 || defined __linux__ || defined __APPLE__
# define TRACY_HAS_SYSTIME
#else
# include <sys/param.h>
#endif
#ifdef BSD
# define TRACY_HAS_SYSTIME
#endif
#ifdef TRACY_HAS_SYSTIME
#include <stdint.h>
namespace tracy
{
class SysTime
{
publ... | whupdup/frame | real/third_party/tracy/client/TracySysTime.hpp | C++ | gpl-3.0 | 435 |
#include "TracyDebug.hpp"
#include "TracyStringHelpers.hpp"
#include "TracySysTrace.hpp"
#include "../common/TracySystem.hpp"
#ifdef TRACY_HAS_SYSTEM_TRACING
#ifndef TRACY_SAMPLING_HZ
# if defined _WIN32
# define TRACY_SAMPLING_HZ 8000
# elif defined __linux__
# define TRACY_SAMPLING_HZ 10000
# endif
#endif
... | whupdup/frame | real/third_party/tracy/client/TracySysTrace.cpp | C++ | gpl-3.0 | 51,859 |
#ifndef __TRACYSYSTRACE_HPP__
#define __TRACYSYSTRACE_HPP__
#if !defined TRACY_NO_SYSTEM_TRACING && ( defined _WIN32 || defined __linux__ )
# include "../common/TracyUwp.hpp"
# ifndef TRACY_UWP
# define TRACY_HAS_SYSTEM_TRACING
# endif
#endif
#ifdef TRACY_HAS_SYSTEM_TRACING
#include <stdint.h>
namespace tracy... | whupdup/frame | real/third_party/tracy/client/TracySysTrace.hpp | C++ | gpl-3.0 | 539 |
#ifndef __TRACYTHREAD_HPP__
#define __TRACYTHREAD_HPP__
#if defined _WIN32
# include <windows.h>
#else
# include <pthread.h>
#endif
#ifdef TRACY_MANUAL_LIFETIME
# include "tracy_rpmalloc.hpp"
#endif
namespace tracy
{
#ifdef TRACY_MANUAL_LIFETIME
extern thread_local bool RpThreadInitDone;
#endif
class ThreadExit... | whupdup/frame | real/third_party/tracy/client/TracyThread.hpp | C++ | gpl-3.0 | 1,576 |
/*
Copyright (c) 2020 Erik Rigtorp <erik@rigtorp.se>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... | whupdup/frame | real/third_party/tracy/client/tracy_SPSCQueue.h | C++ | gpl-3.0 | 4,954 |
// Provides a C++11 implementation of a multi-producer, multi-consumer lock-free queue.
// An overview, including benchmark results, is provided here:
// http://moodycamel.com/blog/2014/a-fast-general-purpose-lock-free-queue-for-c++
// The full design is also described in excruciating detail at:
// http://moody... | whupdup/frame | real/third_party/tracy/client/tracy_concurrentqueue.h | C++ | gpl-3.0 | 53,955 |
#ifdef TRACY_ENABLE
/* rpmalloc.c - Memory allocator - Public Domain - 2016 Mattias Jansson
*
* This library provides a cross-platform lock free thread caching malloc implementation in C11.
* The latest source code is always available at
*
* https://github.com/mjansson/rpmalloc
*
* This library is put in ... | whupdup/frame | real/third_party/tracy/client/tracy_rpmalloc.cpp | C++ | gpl-3.0 | 88,036 |
/* rpmalloc.h - Memory allocator - Public Domain - 2016 Mattias Jansson
*
* This library provides a cross-platform lock free thread caching malloc implementation in C11.
* The latest source code is always available at
*
* https://github.com/mjansson/rpmalloc
*
* This library is put in the public domain; yo... | whupdup/frame | real/third_party/tracy/client/tracy_rpmalloc.hpp | C++ | gpl-3.0 | 11,587 |
#ifndef __TRACYALIGN_HPP__
#define __TRACYALIGN_HPP__
#include <string.h>
#include "TracyForceInline.hpp"
namespace tracy
{
template<typename T>
tracy_force_inline T MemRead( const void* ptr )
{
T val;
memcpy( &val, ptr, sizeof( T ) );
return val;
}
template<typename T>
tracy_force_inline void MemWrite... | whupdup/frame | real/third_party/tracy/common/TracyAlign.hpp | C++ | gpl-3.0 | 394 |
#ifndef __TRACYALLOC_HPP__
#define __TRACYALLOC_HPP__
#include <stdlib.h>
#ifdef TRACY_ENABLE
# include "TracyApi.h"
# include "TracyForceInline.hpp"
# include "../client/tracy_rpmalloc.hpp"
#endif
namespace tracy
{
#ifdef TRACY_ENABLE
TRACY_API void InitRpmalloc();
#endif
static inline void* tracy_malloc( size... | whupdup/frame | real/third_party/tracy/common/TracyAlloc.hpp | C++ | gpl-3.0 | 1,046 |
#ifndef __TRACYAPI_H__
#define __TRACYAPI_H__
#if defined _WIN32
# if defined TRACY_EXPORTS
# define TRACY_API __declspec(dllexport)
# elif defined TRACY_IMPORTS
# define TRACY_API __declspec(dllimport)
# else
# define TRACY_API
# endif
#else
# define TRACY_API __attribute__((visibility("default")))
#end... | whupdup/frame | real/third_party/tracy/common/TracyApi.h | C++ | gpl-3.0 | 352 |
#ifndef __TRACYCOLOR_HPP__
#define __TRACYCOLOR_HPP__
namespace tracy
{
struct Color
{
enum ColorType
{
Snow = 0xfffafa,
GhostWhite = 0xf8f8ff,
WhiteSmoke = 0xf5f5f5,
Gainsboro = 0xdcdcdc,
FloralWhite = 0xfffaf0,
OldLace = 0xfdf5e6,
Linen = 0xfaf0e6,
AntiqueWhite = 0xfaebd7,
PapayaW... | whupdup/frame | real/third_party/tracy/common/TracyColor.hpp | C++ | gpl-3.0 | 17,206 |
#ifndef __TRACYFORCEINLINE_HPP__
#define __TRACYFORCEINLINE_HPP__
#if defined(__GNUC__)
# define tracy_force_inline __attribute__((always_inline)) inline
#elif defined(_MSC_VER)
# define tracy_force_inline __forceinline
#else
# define tracy_force_inline inline
#endif
#if defined(__GNUC__)
# define tracy_no_inline... | whupdup/frame | real/third_party/tracy/common/TracyForceInline.hpp | C++ | gpl-3.0 | 465 |
#ifndef __TRACYMUTEX_HPP__
#define __TRACYMUTEX_HPP__
#if defined _MSC_VER
# include <shared_mutex>
namespace tracy
{
using TracyMutex = std::shared_mutex;
}
#else
#include <mutex>
namespace tracy
{
using TracyMutex = std::mutex;
}
#endif
#endif
| whupdup/frame | real/third_party/tracy/common/TracyMutex.hpp | C++ | gpl-3.0 | 255 |
#ifndef __TRACYPROTOCOL_HPP__
#define __TRACYPROTOCOL_HPP__
#include <limits>
#include <stdint.h>
namespace tracy
{
constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; }
enum : uint32_t { ProtocolVersion = 57 };
enum : uint16_t { BroadcastVersion = 2 };
using lz4sz_t = uint... | whupdup/frame | real/third_party/tracy/common/TracyProtocol.hpp | C++ | gpl-3.0 | 3,110 |
#ifndef __TRACYQUEUE_HPP__
#define __TRACYQUEUE_HPP__
#include <stddef.h>
#include <stdint.h>
namespace tracy
{
enum class QueueType : uint8_t
{
ZoneText,
ZoneName,
Message,
MessageColor,
MessageCallstack,
MessageColorCallstack,
MessageAppInfo,
ZoneBeginAllocSrcLoc,
ZoneBeginAlloc... | whupdup/frame | real/third_party/tracy/common/TracyQueue.hpp | C++ | gpl-3.0 | 21,017 |
#include <assert.h>
#include <inttypes.h>
#include <new>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "TracyAlloc.hpp"
#include "TracySocket.hpp"
#include "TracySystem.hpp"
#ifdef _WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <winsock2.h>
# include <... | whupdup/frame | real/third_party/tracy/common/TracySocket.cpp | C++ | gpl-3.0 | 16,905 |
#ifndef __TRACYSOCKET_HPP__
#define __TRACYSOCKET_HPP__
#include <atomic>
#include <stddef.h>
#include <stdint.h>
#include "TracyForceInline.hpp"
struct addrinfo;
struct sockaddr;
namespace tracy
{
#ifdef _WIN32
void InitWinSock();
#endif
class Socket
{
public:
Socket();
Socket( int sock );
~Socket();... | whupdup/frame | real/third_party/tracy/common/TracySocket.hpp | C++ | gpl-3.0 | 3,282 |
#include "TracyStackFrames.hpp"
namespace tracy
{
const char* s_tracyStackFrames_[] = {
"tracy::Callstack",
"tracy::Callstack(int)",
"tracy::GpuCtxScope::{ctor}",
"tracy::Profiler::SendCallstack",
"tracy::Profiler::SendCallstack(int)",
"tracy::Profiler::SendCallstack(int, unsigned long)",
... | whupdup/frame | real/third_party/tracy/common/TracyStackFrames.cpp | C++ | gpl-3.0 | 4,471 |
#ifndef __TRACYSTACKFRAMES_HPP__
#define __TRACYSTACKFRAMES_HPP__
#include <stddef.h>
namespace tracy
{
struct StringMatch
{
const char* str;
size_t len;
};
extern const char** s_tracyStackFrames;
extern const StringMatch* s_tracySkipSubframes;
static constexpr int s_tracySkipSubframesMinLen = 7;
}
#endi... | whupdup/frame | real/third_party/tracy/common/TracyStackFrames.hpp | C++ | gpl-3.0 | 322 |
#ifdef _MSC_VER
# pragma warning(disable:4996)
#endif
#if defined _WIN32
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <windows.h>
# include <malloc.h>
# include "TracyUwp.hpp"
#else
# include <pthread.h>
# include <string.h>
# i... | whupdup/frame | real/third_party/tracy/common/TracySystem.cpp | C++ | gpl-3.0 | 7,793 |
#ifndef __TRACYSYSTEM_HPP__
#define __TRACYSYSTEM_HPP__
#include <stdint.h>
#include "TracyApi.h"
namespace tracy
{
namespace detail
{
TRACY_API uint32_t GetThreadHandleImpl();
}
#ifdef TRACY_ENABLE
TRACY_API uint32_t GetThreadHandle();
#else
static inline uint32_t GetThreadHandle()
{
return detail::GetThreadH... | whupdup/frame | real/third_party/tracy/common/TracySystem.hpp | C++ | gpl-3.0 | 508 |
#ifndef __TRACYUWP_HPP__
#define __TRACYUWP_HPP__
#ifdef _WIN32
# include <winapifamily.h>
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
# define TRACY_UWP
# endif
#endif
#endif
| whupdup/frame | real/third_party/tracy/common/TracyUwp.hpp | C++ | gpl-3.0 | 245 |
#ifndef __TRACYYIELD_HPP__
#define __TRACYYIELD_HPP__
#if defined __SSE2__ || defined _M_AMD64 || _M_IX86_FP == 2
# include <emmintrin.h>
#else
# include <thread>
#endif
#include "TracyForceInline.hpp"
namespace tracy
{
static tracy_force_inline void YieldThread()
{
#if defined __SSE2__ || defined _M_AMD64 || _M_... | whupdup/frame | real/third_party/tracy/common/TracyYield.hpp | C++ | gpl-3.0 | 464 |
# Extract the actual list of source files from a sibling Visual Studio project.
# Ensure these are simply-substituted variables, without changing their values.
SRC := $(SRC)
SRC2 := $(SRC2)
SRC3 := $(SRC3)
SRC4 := $(SRC4)
# Paths here are relative to the directory in which make was invoked, not to
# this file, so ../... | whupdup/frame | real/third_party/tracy/common/src-from-vcxproj.mk | mk | gpl-3.0 | 1,030 |
/*
LZ4 - Fast LZ compression algorithm
Copyright (C) 2011-present, Yann Collet.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
... | whupdup/frame | real/third_party/tracy/common/tracy_lz4.cpp | C++ | gpl-3.0 | 105,044 |
/*
* LZ4 - Fast LZ compression algorithm
* Header File
* Copyright (C) 2011-present, Yann Collet.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditio... | whupdup/frame | real/third_party/tracy/common/tracy_lz4.hpp | C++ | gpl-3.0 | 40,875 |
/*
LZ4 HC - High Compression Mode of LZ4
Copyright (C) 2011-2017, Yann Collet.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met... | whupdup/frame | real/third_party/tracy/common/tracy_lz4hc.cpp | C++ | gpl-3.0 | 69,048 |
/*
LZ4 HC - High Compression Mode of LZ4
Header File
Copyright (C) 2011-2017, Yann Collet.
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions ar... | whupdup/frame | real/third_party/tracy/common/tracy_lz4hc.hpp | C++ | gpl-3.0 | 20,081 |
ARCH := $(shell uname -m)
ifeq (1,$(shell $(CC) --version | grep clang > /dev/null && echo 1 || echo 0))
ifeq (1,$(shell ld.mold --version > /dev/null 2> /dev/null && echo 1 || echo 0))
LDFLAGS := -fuse-ld=mold
endif
endif
ifndef TRACY_NO_ISA_EXTENSIONS
ifeq ($(ARCH),x86_64)
CFLAGS += -msse4.1
endif
endif
| whupdup/frame | real/third_party/tracy/common/unix-debug.mk | mk | gpl-3.0 | 313 |
ARCH := $(shell uname -m)
ifeq (0,$(shell $(CC) --version | grep clang > /dev/null && echo 1 || echo 0))
CFLAGS += -s
else
ifeq (1,$(shell ld.mold --version > /dev/null 2> /dev/null && echo 1 || echo 0))
LDFLAGS := -s -fuse-ld=mold
else
LDFLAGS := -s
endif
endif
ifndef TRACY_NO_ISA_EXTENSIONS
ifneq (,$(filter $... | whupdup/frame | real/third_party/tracy/common/unix-release.mk | mk | gpl-3.0 | 407 |
# Common code needed by most Tracy Unix Makefiles.
# Ensure these are simply-substituted variables, without changing their values.
LIBS := $(LIBS)
# Tracy does not use TBB directly, but the implementation of parallel algorithms
# in some versions of libstdc++ depends on TBB. When it does, you must
# explicitly link a... | whupdup/frame | real/third_party/tracy/common/unix.mk | mk | gpl-3.0 | 2,579 |
#ifdef _WIN32
# include <windows.h>
#endif
#include <algorithm>
#include <cctype>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <math.h>
#include <stdio.h>
#include <stdint.h>
#include "../../server/TracyFileRead.hpp"
#include "../../server/TracyWorker.hpp"
#include "../../get... | whupdup/frame | real/third_party/tracy/csvexport/src/csvexport.cpp | C++ | gpl-3.0 | 8,236 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
id="svg8"
version="1.1"... | whupdup/frame | real/third_party/tracy/doc/design.svg | svg | gpl-3.0 | 15,119 |
cmake_minimum_required(VERSION 3.10)
project(OpenCLVectorAdd)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
find_package(OpenCL REQUIRED)
add_executable(OpenCLVectorAdd OpenCLVectorAdd.cpp)
add_library(TracyClient STATIC ../../TracyClient.cpp
../../TracyOpenCL.hp... | whupdup/frame | real/third_party/tracy/examples/OpenCLVectorAdd/CMakeLists.txt | Text | gpl-3.0 | 547 |
#include <algorithm>
#include <iostream>
#include <cassert>
#include <string>
#include <vector>
#include <numeric>
#include <CL/cl.h>
#include <Tracy.hpp>
#include <TracyOpenCL.hpp>
#define CL_ASSERT(err) \
if((err) != CL_SUCCESS) ... | whupdup/frame | real/third_party/tracy/examples/OpenCLVectorAdd/OpenCLVectorAdd.cpp | C++ | gpl-3.0 | 8,812 |
Windows/Compiled*Shader.h
| whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/.gitignore | Git | gpl-3.0 | 26 |
https://github.com/aras-p/ToyPathTracer
Modified to render only 10 frames. Client part requires 12 GB, server part
requires 6.4 GB.
| whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/README | none | gpl-3.0 | 133 |
#if defined(__APPLE__) && !defined(__METAL_VERSION__)
#include <TargetConditionals.h>
#endif
#define kBackbufferWidth 1280
#define kBackbufferHeight 720
#if defined(__EMSCRIPTEN__)
#define CPU_CAN_DO_SIMD 0
#define CPU_CAN_DO_THREADS 0
#else
#define CPU_CAN_DO_SIMD 1
#define CPU_CAN_DO_THREADS 1
#endif
#define DO_... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/Config.h | C++ | gpl-3.0 | 802 |
#pragma once
#if defined(_MSC_VER)
#define VM_INLINE __forceinline
#else
#define VM_INLINE __attribute__((unused, always_inline, nodebug)) inline
#endif
#define kSimdWidth 4
#if !defined(__arm__) && !defined(__arm64__) && !defined(__EMSCRIPTEN__)
// ---- SSE implementation
#include <xmmintrin.h>
#include <emmintri... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/MathSimd.h | C++ | gpl-3.0 | 8,111 |
#include "Maths.h"
#include <stdlib.h>
#include <stdint.h>
static uint32_t XorShift32(uint32_t& state)
{
uint32_t x = state;
x ^= x << 13;
x ^= x >> 17;
x ^= x << 15;
state = x;
return x;
}
float RandomFloat01(uint32_t& state)
{
return (XorShift32(state) & 0xFFFFFF) / 16777216.0f;
}
float... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/Maths.cpp | C++ | gpl-3.0 | 6,247 |
#pragma once
#include <math.h>
#include <assert.h>
#include <stdint.h>
#include "Config.h"
#include "MathSimd.h"
#define kPI 3.1415926f
// SSE/SIMD vector largely based on http://www.codersnotes.com/notes/maths-lib-2016/
#if DO_FLOAT3_WITH_SIMD
#if !defined(__arm__) && !defined(__arm64__)
// ---- SSE implementati... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/Maths.h | C++ | gpl-3.0 | 15,925 |
#include "Config.h"
#include "Test.h"
#include "Maths.h"
#include <algorithm>
#if CPU_CAN_DO_THREADS
#include "enkiTS/TaskScheduler_c.h"
#include <thread>
#endif
#include <atomic>
#include "../../../Tracy.hpp"
// 46 spheres (2 emissive) when enabled; 9 spheres (1 emissive) when disabled
#define DO_BIG_SCENE 1
static... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/Test.cpp | C++ | gpl-3.0 | 15,729 |
#pragma once
#include <stdint.h>
enum TestFlags
{
kFlagAnimate = (1 << 0),
kFlagProgressive = (1 << 1),
};
void InitializeTest();
void ShutdownTest();
void UpdateTest(float time, int frameCount, int screenWidth, int screenHeight, unsigned testFlags);
void DrawTest(float time, int frameCount, int screenWidth,... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/Test.h | C++ | gpl-3.0 | 607 |
// Copyright (c) 2013 Doug Binks
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercia... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/enkiTS/Atomics.h | C++ | gpl-3.0 | 3,077 |
// Copyright (c) 2013 Doug Binks
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercia... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/enkiTS/LockLessMultiReadPipe.h | C++ | gpl-3.0 | 9,132 |
// Copyright (c) 2013 Doug Binks
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercia... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/enkiTS/TaskScheduler.cpp | C++ | gpl-3.0 | 12,405 |
// Copyright (c) 2013 Doug Binks
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercia... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/enkiTS/TaskScheduler.h | C++ | gpl-3.0 | 6,717 |
// Copyright (c) 2013 Doug Binks
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercia... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/enkiTS/TaskScheduler_c.cpp | C++ | gpl-3.0 | 3,306 |
// Copyright (c) 2013 Doug Binks
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercia... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/enkiTS/TaskScheduler_c.h | C++ | gpl-3.0 | 4,000 |
// Copyright (c) 2013 Doug Binks
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercia... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Source/enkiTS/Threads.h | C++ | gpl-3.0 | 5,099 |
#include "../Source/Config.h"
inline uint RNG(inout uint state)
{
uint x = state;
x ^= x << 13;
x ^= x >> 17;
x ^= x << 15;
state = x;
return x;
}
float RandomFloat01(inout uint state)
{
return (RNG(state) & 0xFFFFFF) / 16777216.0f;
}
float3 RandomInUnitDisk(inout uint state)
{
float ... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Windows/ComputeShader.hlsl | HLSL | gpl-3.0 | 11,560 |
float3 LinearToSRGB(float3 rgb)
{
rgb = max(rgb, float3(0, 0, 0));
return max(1.055 * pow(rgb, 0.416666667) - 0.055, 0.0);
}
Texture2D tex : register(t0);
SamplerState smp : register(s0);
float4 main(float2 uv : TEXCOORD0) : SV_Target
{
float3 col = tex.Sample(smp, uv).rgb;
col = LinearToSRGB(col);
... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Windows/PixelShader.hlsl | HLSL | gpl-3.0 | 350 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCpu", "TestCpu.vcxproj", "{4F84B756-87F5-4B92-827B-DA087DAE1900}"
EndProject
Global
GlobalSect... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Windows/TestCpu.sln | sln | gpl-3.0 | 1,403 |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Windows/TestCpu.vcxproj | vcxproj | gpl-3.0 | 14,775 |
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="TestWin.cpp" />
<ClCompile Include="..\Source\Test.cpp">
<Filter>Source</Filter>
</ClCompile>
<ClCompile Include="..\Source\enkiTS\Task... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Windows/TestCpu.vcxproj.filters | filters | gpl-3.0 | 2,258 |
#include <stdint.h>
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <windows.h>
#include <d3d11_1.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
#include "../Source/Config.h"
#include "../Source/Maths.h"
#include "../Source/Test.h"
#include "CompiledVertexShader.h"
#include "Co... | whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Windows/TestWin.cpp | C++ | gpl-3.0 | 19,670 |
struct vs2ps
{
float2 uv : TEXCOORD0;
float4 pos : SV_Position;
};
vs2ps main(uint vid : SV_VertexID)
{
vs2ps o;
o.uv = float2((vid << 1) & 2, vid & 2);
o.pos = float4(o.uv * float2(2, 2) + float2(-1, -1), 0, 1);
return o;
}
| whupdup/frame | real/third_party/tracy/examples/ToyPathTracer/Windows/VertexShader.hlsl | HLSL | gpl-3.0 | 250 |
// g++ fibers.cpp ../TracyClient.cpp -DTRACY_ENABLE -DTRACY_FIBERS -lpthread -ldl
#include <thread>
#include <unistd.h>
#include "../Tracy.hpp"
#include "../TracyC.h"
const char* fiber = "job1";
TracyCZoneCtx zone;
int main()
{
std::thread t1( [] {
TracyFiberEnter( fiber );
TracyCZone( ctx, 1 );... | whupdup/frame | real/third_party/tracy/examples/fibers.cpp | C++ | gpl-3.0 | 570 |
#include <algorithm>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <math.h>
inline float linear2sRGB( float v )
{
float s1 = sqrt( v );
float s2 = sqrt( s1 );
float s3 = sqrt( s2 );
return 0.585122381f * s1 + 0.783140355f * s2 - 0.368262736f * s3;
}
float lerp( float v0, float v1... | whupdup/frame | real/third_party/tracy/extra/color-hot.cpp | C++ | gpl-3.0 | 1,663 |
#include <algorithm>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <math.h>
inline float sqrtfast( float v )
{
union
{
int i;
float f;
} u;
u.f = v;
u.i -= 1 << 23;
u.i >>= 1;
u.i += 1 << 29;
return u.f;
}
inline float linear2sRGB( float v )
{
... | whupdup/frame | real/third_party/tracy/extra/color.cpp | C++ | gpl-3.0 | 1,828 |
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/tracy">
<comment>Tracy Profiler trace file</comment>
<comment xml:lang="pl">Zrzut sesji profilera Tracy</comment>
<icon name="application-tracy"/>
... | whupdup/frame | real/third_party/tracy/extra/desktop/application-tracy.xml | XML | gpl-3.0 | 535 |
[Desktop Entry]
Version=1.0
Type=Application
Name=Tracy Profiler
GenericName=Code profiler
GenericName[pl]=Profiler kodu
Comment=Examine code to see where it is slow
Comment[pl]=Znajdowanie wolno wykonującego się kodu
Exec=/usr/bin/tracy %f
Icon=tracy
Terminal=false
Categories=Development;Profiling;
MimeType=applicatio... | whupdup/frame | real/third_party/tracy/extra/desktop/tracy.desktop | desktop | gpl-3.0 | 331 |
#include <stdint.h>
#include <stdio.h>
int main()
{
for( int i=0; i<255*3+1; i++ )
{
// replace 4 with 2 for ARM NEON table
uint32_t range = ( 4 << 16 ) / ( 1+i );
if( range > 0xFFFF ) range = 0xFFFF;
if( i % 16 == 15 )
{
printf( "0x%04x,\n", range );
... | whupdup/frame | real/third_party/tracy/extra/dxt1divtable.c | C++ | gpl-3.0 | 439 |
#include <stdint.h>
#include <stdio.h>
static const uint8_t IndexTable[4] = { 1, 3, 2, 0 };
int convert( int v )
{
int v0 = v & 0x3;
int v1 = ( v >> 2 ) & 0x3;
int v2 = ( v >> 4 ) & 0x3;
int v3 = ( v >> 6 );
int t0 = IndexTable[v0];
int t1 = IndexTable[v1];
int t2 = IndexTable[v2];
in... | whupdup/frame | real/third_party/tracy/extra/dxt1table.c | C++ | gpl-3.0 | 666 |
// g++ identify.cpp -lpthread ../common/tracy_lz4.cpp ../zstd/common/*.c ../zstd/decompress/*.c ../zstd/decompress/huf_decompress_amd64.S
#include <memory>
#include <stdint.h>
#include <stdio.h>
#include "../server/TracyFileRead.hpp"
#include "../server/TracyVersion.hpp"
static const uint8_t FileHeader[8] { 't', 'r'... | whupdup/frame | real/third_party/tracy/extra/identify.cpp | C++ | gpl-3.0 | 1,422 |
#!/bin/sh
rm -rf tracy-build
mkdir tracy-build
if [ ! -f vswhere.exe ]; then
wget https://github.com/microsoft/vswhere/releases/download/2.8.4/vswhere.exe
fi
MSVC=`./vswhere.exe -property installationPath -version '[17.0,17.999]' | head -n 1`
MSVC=`wslpath "$MSVC" | tr -d '\r'`
MSBUILD=$MSVC/MSBuild/Current/Bin/... | whupdup/frame | real/third_party/tracy/extra/make-build.sh | Shell | gpl-3.0 | 1,024 |
#include <stdio.h>
int main()
{
//int a = 16, b = 44, s = 4;
//int av = 12, bv = 6, cv = 3;
//int a = 32, b = 48, s = 16;
//int av = 12, bv = 6, cv = 3;
int a = 48, b = 64, s = 16;
int av = 48, bv = 32, cv = 24;
printf( "int TrTbl[] = { " );
int first = 1;
for( int i=0; i<256; i+... | whupdup/frame | real/third_party/tracy/extra/rdotbl.c | C++ | gpl-3.0 | 532 |
#!/bin/sh
# These may be passed as environment variables, or will use the following defaults.
: ${CC:=clang}
: ${STRIP:=strip}
: ${SSTRIP:=sstrip}
if [ ! -x "$(command -v "${CC}")" ]
then
echo "Set the CC environment variable to a C compiler."
exit 1
fi
if [ ! -x "$(command -v "${STRIP}")" ]
then
echo "Set the... | whupdup/frame | real/third_party/tracy/extra/systrace/build.sh | Shell | gpl-3.0 | 949 |
#include <fcntl.h>
#include <poll.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <dlfcn.h>
enum { BufSize = 64*1024 };
typedef int (*open_t)( const char*, int, ... );
typedef void (*exit_t)( int );
typedef int (*poll_t)( struct pol... | whupdup/frame | real/third_party/tracy/extra/systrace/tracy_systrace.c | C++ | gpl-3.0 | 2,041 |
#include <stdint.h>
namespace tracy
{
struct AsmDesc
{
uint8_t type;
uint16_t width;
};
struct AsmVar
{
int descNum;
AsmDesc desc[5];
int isaSet;
float tp;
int port, uops, minlat, maxlat;
bool minbound, maxbound;
};
struct AsmOp
{
int id;
int descId;
int numVariants;
... | whupdup/frame | real/third_party/tracy/extra/uarch/TracyMicroArchitecture.hpp | C++ | gpl-3.0 | 716 |
// Use with instructions.xml retrieved from uops.info
#include <algorithm>
#include <assert.h>
#include <limits>
#include <stdio.h>
#include <string>
#include <string.h>
#include <pugixml.hpp>
#include <unordered_map>
#include <vector>
struct Dictionary
{
int Get( const std::string& str )
{
auto it = ... | whupdup/frame | real/third_party/tracy/extra/uarch/uarch.cpp | C++ | gpl-3.0 | 10,552 |
#include <stdint.h>
#include <stdio.h>
#include "../server/TracyFileHeader.hpp"
#include "../server/TracyVersion.hpp"
int main()
{
const auto ver = uint32_t( tracy::FileVersion( tracy::Version::Major, tracy::Version::Minor, tracy::Version::Patch ) );
fwrite( &ver, 1, 4, stdout );
}
| whupdup/frame | real/third_party/tracy/extra/version.cpp | C++ | gpl-3.0 | 293 |
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE* f = fopen( "rgb.txt", "rb" );
char buf[1024];
int off = 0;
for(;;)
{
int sz = fread( buf+off, 1, 1, f );
if( buf[off] == '\r' || buf[off] == '\n' || sz == 0 )
{
if( off == 0 )
{
... | whupdup/frame | real/third_party/tracy/extra/x11_colors.c | C++ | gpl-3.0 | 897 |
/*******************************************************************************
* Copyright (c) 2012-2017, Kim Grasman <kim.grasman@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... | whupdup/frame | real/third_party/tracy/getopt/getopt.c | C++ | gpl-3.0 | 8,148 |
/*******************************************************************************
* Copyright (c) 2012-2017, Kim Grasman <kim.grasman@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... | whupdup/frame | real/third_party/tracy/getopt/getopt.h | C++ | gpl-3.0 | 2,307 |
application-tracy.svg (and no other file) is based on icons retrieved from
https://gitlab.gnome.org/GNOME/adwaita-icon-theme.git
----------------------------------------------------------------------------
This work is licenced under the Creative Commons Attribution-Share Alike 3.0
United States License. To view a co... | whupdup/frame | real/third_party/tracy/icon/application-tracy.copying | copying | gpl-3.0 | 617 |
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg id="svg2331" width="135.47mm" height="135.47mm" version="1.1" viewBox="0 0 135.47 135.47" xmlns="http://www.w3.org/2000/svg">
<defs id="defs2328">
<filter id="filter16020" x="-.013633" y="-.010717" width="1.0273" he... | whupdup/frame | real/third_party/tracy/icon/application-tracy.svg | svg | gpl-3.0 | 2,718 |
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg id="svg8" width="100mm" height="100mm" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.... | whupdup/frame | real/third_party/tracy/icon/icon.svg | svg | gpl-3.0 | 1,616 |
//-----------------------------------------------------------------------------
// COMPILE-TIME OPTIONS FOR DEAR IMGUI
// Runtime options (clipboard callbacks, enabling various features, etc.) can generally be set via the ImGuiIO structure.
// You can use ImGui::SetAllocatorFunctions() before calling ImGui::CreateConte... | whupdup/frame | real/third_party/tracy/imgui/imconfig.h | C++ | gpl-3.0 | 9,999 |
// dear imgui, v1.88
// (main code and documentation)
// Help:
// - Read FAQ at http://dearimgui.org/faq
// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Re... | whupdup/frame | real/third_party/tracy/imgui/imgui.cpp | C++ | gpl-3.0 | 957,271 |
// dear imgui, v1.88
// (headers)
// Help:
// - Read FAQ at http://dearimgui.org/faq
// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Read imgui.cpp ... | whupdup/frame | real/third_party/tracy/imgui/imgui.h | C++ | gpl-3.0 | 329,112 |
// dear imgui, v1.88
// (demo code)
// Help:
// - Read FAQ at http://dearimgui.org/faq
// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Read imgui.cp... | whupdup/frame | real/third_party/tracy/imgui/imgui_demo.cpp | C++ | gpl-3.0 | 426,959 |
// dear imgui, v1.88
// (drawing and font code)
/*
Index of this file:
// [SECTION] STB libraries implementation
// [SECTION] Style functions
// [SECTION] ImDrawList
// [SECTION] ImDrawListSplitter
// [SECTION] ImDrawData
// [SECTION] Helpers ShadeVertsXXX functions
// [SECTION] ImFontConfig
// [SECTION] ImFontAtlas... | whupdup/frame | real/third_party/tracy/imgui/imgui_draw.cpp | C++ | gpl-3.0 | 214,477 |
// dear imgui, v1.88
// (internal structures/api)
// You may use this file to debug, understand or extend ImGui features but we don't provide any guarantee of forward compatibility!
// Set:
// #define IMGUI_DEFINE_MATH_OPERATORS
// To implement maths operators for ImVec2 (disabled by default to not collide with usin... | whupdup/frame | real/third_party/tracy/imgui/imgui_internal.h | C++ | gpl-3.0 | 237,793 |
// dear imgui, v1.88
// (tables and columns code)
/*
Index of this file:
// [SECTION] Commentary
// [SECTION] Header mess
// [SECTION] Tables: Main code
// [SECTION] Tables: Simple accessors
// [SECTION] Tables: Row changes
// [SECTION] Tables: Columns changes
// [SECTION] Tables: Columns width management
// [SECTIO... | whupdup/frame | real/third_party/tracy/imgui/imgui_tables.cpp | C++ | gpl-3.0 | 216,522 |
// dear imgui, v1.88
// (widgets code)
/*
Index of this file:
// [SECTION] Forward Declarations
// [SECTION] Widgets: Text, etc.
// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.)
// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.)
// [S... | whupdup/frame | real/third_party/tracy/imgui/imgui_widgets.cpp | C++ | gpl-3.0 | 421,947 |
// [DEAR IMGUI]
// This is a slightly modified version of stb_rect_pack.h 1.01.
// Grep for [DEAR IMGUI] to find the changes.
//
// stb_rect_pack.h - v1.01 - public domain - rectangle packing
// Sean Barrett 2014
//
// Useful for e.g. packing rectangular textures into an atlas.
// Does not do rotation.
//
// Before #i... | whupdup/frame | real/third_party/tracy/imgui/imstb_rectpack.h | C++ | gpl-3.0 | 20,344 |
// [DEAR IMGUI]
// This is a slightly modified version of stb_textedit.h 1.14.
// Those changes would need to be pushed into nothings/stb:
// - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321)
// Grep for [DEAR IMGUI] to find the changes.
// stb_textedit.h - v1.14 - public domain - Se... | whupdup/frame | real/third_party/tracy/imgui/imstb_textedit.h | C++ | gpl-3.0 | 54,933 |
// [DEAR IMGUI]
// This is a slightly modified version of stb_truetype.h 1.26.
// Mostly fixing for compiler and static analyzer warnings.
// Grep for [DEAR IMGUI] to find the changes.
// stb_truetype.h - v1.26 - public domain
// authored from 2009-2021 by Sean Barrett / RAD Game Tools
//
// ==========================... | whupdup/frame | real/third_party/tracy/imgui/imstb_truetype.h | C++ | gpl-3.0 | 199,422 |