Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add skeleton code of fgviewer #8303

Merged
merged 12 commits into from
Dec 20, 2024
Merged

Add skeleton code of fgviewer #8303

merged 12 commits into from
Dec 20, 2024

Conversation

show50726
Copy link
Contributor

@show50726 show50726 commented Dec 9, 2024

  • Set up build scripts and CMake files, with comment to prevent fgviewer being built before the feature is ready
  • Add fgviewer folder to libs and create some skeleton codes of debug server

@show50726 show50726 added the internal Issue/PR does not affect clients label Dec 9, 2024
build.sh Outdated Show resolved Hide resolved
libs/fgviewer/src/DebugServer.cpp Outdated Show resolved Hide resolved
libs/fgviewer/src/DebugServer.cpp Outdated Show resolved Hide resolved
libs/fgviewer/src/DebugServer.cpp Outdated Show resolved Hide resolved
libs/fgviewer/src/DebugServer.cpp Outdated Show resolved Hide resolved
libs/fgviewer/src/DebugServer.cpp Show resolved Hide resolved
libs/fgviewer/include/fgviewer/JsonWriter.h Outdated Show resolved Hide resolved
@show50726 show50726 marked this pull request as draft December 11, 2024 16:09
Copy link
Collaborator

@pixelflinger pixelflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a pretty good start. please address powei's comments and then as long as the build's not broken, we can commit this

build.sh Outdated Show resolved Hide resolved

CivetServer* mServer;

tsl::robin_map<FrameGraphInfoKey, FrameGraphInfo> mViews;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we use robin_map in a lot of places, but we're thinking about moving away from it enventually. So for this, I would just suggest to stuck to the std::unordered_map, it's probably fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.
BTW, I'm wondering what's the different between using these two classes? And why do we want to use robin_map at the beginning?

libs/fgviewer/src/DebugServer.cpp Show resolved Hide resolved
Address the comments
@show50726 show50726 marked this pull request as ready for review December 12, 2024 03:38
libs/fgviewer/include/fgviewer/DebugServer.h Outdated Show resolved Hide resolved
libs/fgviewer/include/fgviewer/JsonWriter.h Outdated Show resolved Hide resolved
libs/fgviewer/src/ApiHandler.cpp Outdated Show resolved Hide resolved
libs/fgviewer/src/ApiHandler.h Outdated Show resolved Hide resolved
libs/fgviewer/src/DebugServer.cpp Show resolved Hide resolved
@show50726 show50726 merged commit 757e3c5 into google:main Dec 20, 2024
9 checks passed
@show50726 show50726 deleted the dev/fgviewer branch December 20, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants